@matheusbsbs / matheus-bagliano / commits / 33fc521193
Fork 0

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 <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Oct 31, 2010 at 02:41 UTC 33fc521193746a0961c270997dbb881b520ad793
1 file changed +2 -3
t/t4124-apply-ws-rule.sh
+2 -3
@@ -176,9 +176,8 @@ test_expect_success 'trailing whitespace & no newline at the end of file' '
176 '
177
178 test_expect_success 'blank at EOF with --whitespace=fix (1)' '
179 - : these can fail depending on what we did before
180 - git config --unset core.whitespace
181 - rm -f .gitattributes
179 + test_might_fail git config --unset core.whitespace &&
180 + rm -f .gitattributes &&
181
182 { echo a; echo b; echo c; } >one &&
183 git add one &&