t1400 (update-ref): use test_must_fail
As t/README explains: When a gitcommand dies due to a segfault, test_must_fail diagnoses it as an error; "! git <command>" treats it as just another expected failure, which would let such a bug go unnoticed. 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:36 UTC
598f0877aa36b5482734091ffef30e21b4e79803
1 file changed
+2
-3
t/t1400-update-ref.sh
+2
-3
@@ -52,9 +52,8 @@ rm -f .git/$m
52
53
test_expect_success \
54
"fail to create $n" \
55
- "touch .git/$n_dir
56
- git update-ref $n $A >out 2>err"'
57
- test $? != 0'
55
+ "touch .git/$n_dir &&
56
+ test_must_fail git update-ref $n $A >out 2>err"
57
rm -f .git/$n_dir out err
58
59
test_expect_success \