summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2b5ec01)
raw | patch | inline | side by side (parent: 2b5ec01)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Sun, 31 Oct 2010 07:36:19 +0000 (02:36 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 9 Nov 2010 23:00:29 +0000 (15:00 -0800) |
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>
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>
t/t1400-update-ref.sh | patch | blob | history |
diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh
index d17551eb724a4deb4e682dcfba5a885d5a839ce2..ff747f8229bb46df070ea9aad2702f4d1c703420 100755 (executable)
--- a/t/t1400-update-ref.sh
+++ b/t/t1400-update-ref.sh
test_expect_success \
"fail to create $n" \
- "touch .git/$n_dir
- git update-ref $n $A >out 2>err"'
- test $? != 0'
+ "touch .git/$n_dir &&
+ test_must_fail git update-ref $n $A >out 2>err"
rm -f .git/$n_dir out err
test_expect_success \