Imported Upstream version 2.4.0
[platform/upstream/git.git] / t / t4124-apply-ws-rule.sh
index c6474de..d350065 100755 (executable)
@@ -99,9 +99,8 @@ test_expect_success 'whitespace=warn, default rule' '
 
 test_expect_success 'whitespace=error-all, default rule' '
 
-       apply_patch --whitespace=error-all && return 1
-       test -s target && return 1
-       : happy
+       test_must_fail apply_patch --whitespace=error-all &&
+       ! test -s target
 
 '