aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-03-24 23:07:08 -0700
committerJunio C Hamano <gitster@pobox.com>2008-03-27 12:13:39 -0700
commit8ee002fd3d875027f70729c0674282dc46fc5654 (patch)
tree22e5a260f050b903e4cc07f10541539803ca4174
parent5b67b8e2d4ed8a152694f4555549fcde5dae77f5 (diff)
downloadgit-8ee002fd3d875027f70729c0674282dc46fc5654.tar.gz
git-8ee002fd3d875027f70729c0674282dc46fc5654.tar.xz
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>
-rw-r--r--t/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 870b255f1..7c2a8ba77 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -300,7 +300,7 @@ test_expect_code () {
test_must_fail () {
"$@"
- test $? -gt 0 -a $? -le 128
+ test $? -gt 0 -a $? -le 129
}
# test_cmp is a helper function to compare actual and expected output.