summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2014-12-17 13:03:35 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2014-12-17 14:10:21 +0100
commit77694d0f0e9ff5730600e6c50d74d0775ff10f0a (patch)
tree512918892df38111cb7f12c31559b990669d0519
parent247b02e5a5bb79ca6666e91de02ae2d3cb0cd325 (diff)
downloadautoconf-77694d0f0e9ff5730600e6c50d74d0775ff10f0a.tar.gz
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 <stefano.lattarini@gmail.com>
-rw-r--r--tests/autotest.at4
1 files changed, 2 insertions, 2 deletions
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])