test_must_fail: 129 is a valid error code from usage()
When a git command is run under test_must_fail to make sure that the argument parser catches bogus command line, it exits with 129. We need to catch it as a valid "graceful error exit". Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Mar 24, 2008 at 23:07 UTC
8ee002fd3d875027f70729c0674282dc46fc5654
1 file changed
+1
-1
t/test-lib.sh
+1
-1
@@ -300,7 +300,7 @@ test_expect_code () {
300
301
test_must_fail () {
302
"$@"
303
- test $? -gt 0 -a $? -le 128
303
+ test $? -gt 0 -a $? -le 129
304
}
305
306
# test_cmp is a helper function to compare actual and expected output.