projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b67b8e
)
test_must_fail: 129 is a valid error code from usage()
author
Junio C Hamano
<gitster@pobox.com>
Tue, 25 Mar 2008 06:07:08 +0000
(23:07 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 27 Mar 2008 19:13:39 +0000
(12:13 -0700)
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>
t/test-lib.sh
patch
|
blob
|
history
diff --git
a/t/test-lib.sh
b/t/test-lib.sh
index 870b255f13e1b2d971b7e036d130d35387e3c2c7..7c2a8ba77d312c3196767969a39687bfb12f74c9 100644
(file)
--- 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 12
8
+ test $? -gt 0 -a $? -le 12
9
}
# test_cmp is a helper function to compare actual and expected output.