t1400 (update-ref): use test_must_fail
commit598f0877aa36b5482734091ffef30e21b4e79803
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 31 Oct 2010 07:36:19 +0000 (31 02:36 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Nov 2010 23:00:29 +0000 (9 15:00 -0800)
tree3bd13df75b159b828602f3534e4bcfa07e92a4be
parent2b5ec018458bd32f554d4395231680235104d8d8
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>
t/t1400-update-ref.sh