rev-parse test: use test_must_fail, not "if <command>; then false; fi"
commitd8f7681337dd0c7944ba2293a72952110977077d
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 3 Sep 2013 17:06:18 +0000 (3 10:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Sep 2013 19:54:52 +0000 (3 12:54 -0700)
tree163208bbf711f9748d924d7d7b54fee58963739e
parentdfb1dc5c336f3fa709e32ce178525768713747f2
rev-parse test: use test_must_fail, not "if <command>; then false; fi"

This way, if rev-parse segfaults then the test will fail instead
of treating it the same way as a controlled failure.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6101-rev-parse-parents.sh