]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests: fix spurious failure when CONFIG_SITE is set
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 4 Mar 2012 15:30:17 +0000 (16:30 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 4 Mar 2012 15:30:17 +0000 (16:30 +0100)
* tests/m4sh.at (Configure re-execs self with CONFIG_SHELL): Export
$CONFIG_SITE to "/dev/null", to avoid spurious diffs in expected
stdout/stderr.

tests/m4sh.at

index 8e9d1fec271adc67721541f0038a688433cb3643..78fe9674989d65e7b326cebe4a75323fcf3a3494 100644 (file)
@@ -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.