diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-03-04 16:30:17 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-03-04 16:30:17 +0100 |
commit | 6e7264cf45b61cf40e0cc91b63ae8365d4f2d1f1 (patch) | |
tree | 65e85c25ea1dc443e671c25dda2fd3b45da033d6 | |
parent | 3b78f246db536275db653903a49725179f5945c2 (diff) | |
download | autoconf-6e7264cf45b61cf40e0cc91b63ae8365d4f2d1f1.tar.gz |
tests: fix spurious failure when CONFIG_SITE is set
* tests/m4sh.at (Configure re-execs self with CONFIG_SHELL): Export
$CONFIG_SITE to "/dev/null", to avoid spurious diffs in expected
stdout/stderr.
-rw-r--r-- | tests/m4sh.at | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/m4sh.at b/tests/m4sh.at index 8e9d1fec..78fe9674 100644 --- a/tests/m4sh.at +++ b/tests/m4sh.at @@ -120,7 +120,10 @@ exec sh "@S|@@" chmod a+x cfg-sh AT_CAPTURE_FILE([config.log]) -AT_CHECK([env CONFIG_SHELL=./cfg-sh ./configure], [0], [], []) +# Export CONFIG_SITE to /dev/null to avoid spurious diffs in expected +# stdout/stderr. +AT_CHECK([env CONFIG_SITE=/dev/null CONFIG_SHELL=./cfg-sh ./configure], + [0], [], []) # ./configure re-executed itself. AT_CHECK([test -f cfg-sh-has-run], [0]) # And did that not to cause extra execution of later commands. |