From: Stefano Lattarini Date: Wed, 17 Dec 2014 12:03:35 +0000 (+0100) Subject: Fix spurious testsuite failure when /bin/sh is dash X-Git-Tag: v2.69b~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77694d0f0e9ff5730600e6c50d74d0775ff10f0a;p=thirdparty%2Fautoconf.git Fix spurious testsuite failure when /bin/sh is dash The testsuite used slightly different logic in the code employed to decide whether a test should be skipped due to a limitation of the selected shell, and in the code running the test itself. * tests/autotest.at (Syntax error): Adjust. (parallel syntax error): Likewise. Signed-off-by: Stefano Lattarini --- diff --git a/tests/autotest.at b/tests/autotest.at index a985f861..8182c83b 100644 --- a/tests/autotest.at +++ b/tests/autotest.at @@ -397,7 +397,7 @@ AT_CHECK_AT_TEST([Syntax error], AT_CHECK([${CONFIG_SHELL-$SHELL} -c 'case `. ./syntax; echo $?` in 0|"") exit 77;; esac'], [0], [ignore], [ignore]) - AT_CHECK([$CONFIG_SHELL ./micro-suite], [1], [ignore], [stderr]) + AT_CHECK([${CONFIG_SHELL-$SHELL} ./micro-suite], [1], [ignore], [stderr]) AT_CHECK([grep "unable to parse test group: 2" stderr], [0], [ignore])], [1 3]) @@ -1507,7 +1507,7 @@ AT_CHECK_AT_TEST([parallel syntax error], AT_CHECK([${CONFIG_SHELL-$SHELL} -c 'case `. ./syntax; echo $?` in 0|"") exit 77;; esac'], [0], [ignore], [ignore]) - AT_CHECK([$CONFIG_SHELL ./micro-suite -j], [1], [ignore], [stderr]) + AT_CHECK([${CONFIG_SHELL-$SHELL} ./micro-suite -j], [1], [ignore], [stderr]) AT_CHECK([grep "unable to parse test group: 2" stderr], [0], [ignore])], [-j2 1 3])