summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-07-23 10:51:48 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-07-23 10:51:48 +0200
commit15fa9fba94f55e8aa5508d23d23413d04a2ffe79 (patch)
tree1164fc9a96bade1205482642768026ac3311ac77
parent587e0c6b4f9c422b26faeecee8b35c3eb741ab8a (diff)
parent7519d2634bdac6763ef2d57b3aff00f37c086a30 (diff)
downloadautomake-15fa9fba94f55e8aa5508d23d23413d04a2ffe79.tar.gz
Merge branch 'fix-pr11909' into maint
* fix-pr11909: self tests: avoid spurious failures on older bash
-rwxr-xr-xt/self-check-explicit-skips.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/t/self-check-explicit-skips.sh b/t/self-check-explicit-skips.sh
index eb60dc2b8..97f5288fd 100755
--- a/t/self-check-explicit-skips.sh
+++ b/t/self-check-explicit-skips.sh
@@ -36,22 +36,19 @@ run_dummy_test ()
" dummy.sh
}
-run_dummy_test '(exit 77); exit 77'
+run_dummy_test 'exit 77'
test $? -eq 77 || exit 1
run_dummy_test 'sh -c "exit 77"' am_explicit_skips=no
test $? -eq 77 || exit 1
-run_dummy_test '(exit 77); exit 77' am_explicit_skips=yes
+run_dummy_test '$PERL -e "exit 77"; true' am_explicit_skips=yes
test $? -eq 78 || exit 1
-run_dummy_test 'sh -c "exit 77"' am_explicit_skips=y
+run_dummy_test 'sh -c "exit 77"; exit 0' am_explicit_skips=y
test $? -eq 78 || exit 1
-run_dummy_test 'exit 77' am_explicit_skips=yes
-test $? -eq 77 || exit 1
-
-run_dummy_test 'skip_ "foo"' am_explicit_skips=y
+run_dummy_test 'skip_ "foo"; :' am_explicit_skips=y
test $? -eq 77 || exit 1
: