summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-03-07 14:22:54 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-03-07 14:23:59 -0800
commita7476d52c456edbda9c79d9a452ddeb450c55331 (patch)
tree65be4304fac137f0c68afd730e8c82b6ed1eed97
parent943789e03f5d3041e223e439dde8851484e2d99a (diff)
downloadautoconf-a7476d52c456edbda9c79d9a452ddeb450c55331.tar.gz
tests: fix port of AT_CHECK_ENV to hosts with flaky grep
* 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.
-rw-r--r--tests/local.at5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/local.at b/tests/local.at
index 66027e83..40b73185 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -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