]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix spurious testsuite failure when /bin/sh is dash
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 17 Dec 2014 12:03:35 +0000 (13:03 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 17 Dec 2014 13:10:21 +0000 (14:10 +0100)
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 <stefano.lattarini@gmail.com>
tests/autotest.at

index a985f8611f1bba7846c770f4eafd4528f01f2820..8182c83bd3efd6bc6cf601de57384a0cdeb563f9 100644 (file)
@@ -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])