From: Stefano Lattarini Date: Mon, 23 Apr 2012 17:03:33 +0000 (+0200) Subject: tests: fix a spurious failure with dash X-Git-Tag: v1.12.0b~10^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f974da70780271a64295ad87dc92f096b90e9908;p=platform%2Fupstream%2Fautomake.git tests: fix a spurious failure with dash The dash shell, at least version 0.5.5.1, doesn't always bail out with a syntax error when a stray "fi" in encountered: $ dash -c ":; fi"; echo stat = $? stat = 0 See also the relevant bug report: This behaviour was causing a spurious error in our testsuite. Fix it. * t/self-check-exit.tap: Use a stray parentheses rather than a stray 'fi' to trigger a syntax error. Signed-off-by: Stefano Lattarini --- diff --git a/t/self-check-exit.tap b/t/self-check-exit.tap index 1d3c020..0ad5651 100755 --- a/t/self-check-exit.tap +++ b/t/self-check-exit.tap @@ -97,7 +97,7 @@ command_ok_ "permission denied" test $? -gt 0 : Syntax errors in the test code. $AM_TEST_RUNNER_SHELL -c "$init; if :; then" "$dummy_test_script" command_ok_ "syntax error 1" test $? -gt 0 -$AM_TEST_RUNNER_SHELL -c "$init; fi" "$dummy_test_script" +$AM_TEST_RUNNER_SHELL -c "$init; true ( true )" "$dummy_test_script" command_ok_ "syntax error 2" test $? -gt 0 :