From: Jonathan Nieder Date: Sun, 31 Oct 2010 07:41:08 +0000 (-0500) Subject: t4124 (apply --whitespace): use test_might_fail X-Git-Tag: v1.7.4-rc0~116^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=33fc521193746a0961c270997dbb881b520ad793;p=git.git t4124 (apply --whitespace): use test_might_fail Use test_might_fail instead of ignoring the exit status from git config --unset, and let the exit status propagate past rm -f (which does not fail on ENOENT). Otherwise bugs that lead git config to crash would not be detected when this test runs. Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/t/t4124-apply-ws-rule.sh b/t/t4124-apply-ws-rule.sh index 414b09b2b..61bfc569c 100755 --- a/t/t4124-apply-ws-rule.sh +++ b/t/t4124-apply-ws-rule.sh @@ -176,9 +176,8 @@ test_expect_success 'trailing whitespace & no newline at the end of file' ' ' test_expect_success 'blank at EOF with --whitespace=fix (1)' ' - : these can fail depending on what we did before - git config --unset core.whitespace - rm -f .gitattributes + test_might_fail git config --unset core.whitespace && + rm -f .gitattributes && { echo a; echo b; echo c; } >one && git add one &&