summaryrefslogtreecommitdiff
path: root/t/t7005-editor.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2007-12-22 19:14:33 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-12-22 19:45:06 -0800
commit7263881253acc4c3af8b3131c60da1554b72f8b2 (patch)
tree87f017766149e4c8c7ebfd73ebe320778348f00f /t/t7005-editor.sh
parentDon't dereference NULL upon lookup failure. (diff)
downloadtgif-7263881253acc4c3af8b3131c60da1554b72f8b2.tar.xz
t7005: do not exit inside test.
The way to signal failure is to leave non-zero in $?, not abort the entire test. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7005-editor.sh')
-rwxr-xr-xt/t7005-editor.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 44228b5ac1..c1cec55306 100755
--- a/t/t7005-editor.sh
+++ b/t/t7005-editor.sh
@@ -37,7 +37,7 @@ test_expect_success 'dumb should error out when falling back on vi' '
if git commit --amend
then
echo "Oops?"
- exit 1
+ false
else
: happy
fi