summaryrefslogtreecommitdiff
path: root/t/self-check-explicit-skips.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-07-14 13:56:34 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-07-23 10:39:16 +0200
commit7519d2634bdac6763ef2d57b3aff00f37c086a30 (patch)
treec26c200893b471f543ae95f16885f8eeb83dc6e5 /t/self-check-explicit-skips.sh
parent19d4b87d970e316a7e13c8895ed0ffe62df5f00e (diff)
downloadautomake-7519d2634bdac6763ef2d57b3aff00f37c086a30.tar.gz
self tests: avoid spurious failures on older bash
Fixes automake bug#11909. * t/self-check-explicit-skips.sh: Remove or rework few checks for use cases that are no more relevant nor supported now that we've got rid of the need to use the 'Exit' function explicitly. Make the other existing checks stricter. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/self-check-explicit-skips.sh')
-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
: