]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests: fix port of AT_CHECK_ENV to hosts with flaky grep
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Mar 2012 22:22:54 +0000 (14:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Mar 2012 22:23:59 +0000 (14:23 -0800)
* tests/local.at (AT_CHECK_ENV): Don't copy the buggy grep's
diagnostics to stderr, as that causes AT_CHECK to fail.  They can
be found in the stderr-* files if this is needed for debugging.

tests/local.at

index 66027e83b1f72971801f53dd6154ff5fac766a12..40b73185267f6069f48e9ad417c2fa8cf5e99d47 100644 (file)
@@ -331,10 +331,7 @@ if test -f state-env.before && test -f state-env.after; then
       # There may be variables spread on several lines; remove latter lines.
       $GREP '^m4_defn([m4_re_word])=' >clean-$act_file ||
         test $? -eq 1 || grep_failed=:
-    if test -s stderr-$act_file; then
-      cat stderr-$act_file >&2
-      grep_failed=:
-    fi
+    test -s stderr-$act_file && grep_failed=:
   done
   $at_traceon
   $grep_failed || $at_diff clean-state-env.before clean-state-env.after