t4002 (diff-basic): use test_might_fail for commands that might fail
commitb62b3436ffa6acc27a431f29fb25aa08eb441940
authorElijah Newren <newren@gmail.com>
Sun, 3 Oct 2010 20:00:03 +0000 (3 14:00 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Oct 2010 20:26:11 +0000 (6 13:26 -0700)
treee7a829724ba4f2803f5a9b369d4f76a2effaa925
parent315e76540baa8b2c1887ea1ee0827dcbcda3e267
t4002 (diff-basic): use test_might_fail for commands that might fail

Also replace '|| return 1' by '&&' to allow chain of operations to be
checked for proper return status, and modify the update-index command
as suggested by Jonathan Nieder to not exit early but try to make sure
files that match the work tree are marked as matching.

Acked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4002-diff-basic.sh