t4017 (diff-retval): replace manual exit code check with test_expect_code
authorElijah Newren <newren@gmail.com>
Sun, 3 Oct 2010 20:00:01 +0000 (14:00 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Oct 2010 20:26:11 +0000 (13:26 -0700)
commitdd0c69e95638d49f576c3774b8073b68d82ec0ff
tree7f9a9c94fd2f2a61986be2fcbbce44b37a7300a8
parent892e6f7ea61e39d8504e3f227ee3ae874521f05c
t4017 (diff-retval): replace manual exit code check with test_expect_code

This commit takes advantage of Ævar Arnfjörð Bjarmason's recent change
to test_expect_code (test-lib: make test_expect_code a test command) to
simplify several testcases.

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/t4017-diff-retval.sh