And we should squash in the following:

-*-*-

diff --git a/tests/regex.test b/tests/regex.test
index 9b14a54..611ce24 100755
--- a/tests/regex.test
+++ b/tests/regex.test
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2004  Free Software Foundation, Inc.
+# Copyright (C) 2004, 2010 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
diff --git a/tests/regex2.test b/tests/regex2.test
index d997068..467daa0 100755
--- a/tests/regex2.test
+++ b/tests/regex2.test
@@ -37,12 +37,11 @@ bin_PROGRAMS = foo
 check-local:
        @echo "with_regex='$$with_regex'"
        grep '#.*WITH_REGEX' config.h
-       output=`./foo`; \
-       echo "output='$$output'"; \
+       ./foo$(EXEEXT)
        if test x"$$with_regex" = x"yes"; then \
-         test x"$$output" = x'WITH_REGEX=1'; \
+         test x"`./foo$(EXEEXT)`" = x'WITH_REGEX=1'; \
        else \
-         test x"$$output" = x'undef WITH_REGEX'; \
+         test x"`./foo$(EXEEXT)`" = x'undef WITH_REGEX'; \
        fi
 END
 
diff --git a/tests/regex3.test b/tests/regex3.test
index e2967b1..b8bfb5f 100755
--- a/tests/regex3.test
+++ b/tests/regex3.test
@@ -42,12 +42,12 @@ check-local:
        @echo 'am_cv_gnu_regex=$(am_cv_gnu_regex)'
        @echo 'ac_cv_func_re_rx_search=$(ac_cv_func_re_rx_search)'
        grep '#.*WITH_REGEX' config.h # sanity check
-       output=`./foo`; \
-       echo "output='$$output'"; \
+       grep '#.*WITH_REGEX' config.h
+       ./foo$(EXEEXT)
        if test x"$$with_regex" = x"yes"; then \
-         test x"$$output" = x'regex, WITH_REGEX=1'; \
+         test x"`./foo$(EXEEXT)`" = x'regex, WITH_REGEX=1'; \
        else \
-         test x"$$output" = x'rx, undef WITH_REGEX'; \
+         test x"`./foo$(EXEEXT)`" = x'rx, undef WITH_REGEX'; \
        fi
 END

-*-*-

Sorry for the noise,
  Stefano

Reply via email to