Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-03-25 09:07:08 +0300
committerJunio C Hamano <gitster@pobox.com>2008-03-27 22:13:39 +0300
commit8ee002fd3d875027f70729c0674282dc46fc5654 (patch)
tree22e5a260f050b903e4cc07f10541539803ca4174 /t/test-lib.sh
parent5b67b8e2d4ed8a152694f4555549fcde5dae77f5 (diff)
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>
Diffstat (limited to 't/test-lib.sh')
-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 870b255f13..7c2a8ba77d 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.