From: Stefano Lattarini Date: Sun, 4 Mar 2012 15:30:17 +0000 (+0100) Subject: tests: fix spurious failure when CONFIG_SITE is set X-Git-Tag: v2.69~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e7264cf45b61cf40e0cc91b63ae8365d4f2d1f1;p=thirdparty%2Fautoconf.git 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. --- diff --git a/tests/m4sh.at b/tests/m4sh.at index 8e9d1fec2..78fe96749 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.