merge hook tests: use 'test_must_fail' instead of '!'

Signed-off-by: Benoit Pierre <benoit.pierre@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Benoit Pierre committed Mar 10, 2014 at 19:49 UTC b7ae14148fc44223b4ffaff5ccbf3227a0af8f3c
1 file changed +2 -2
t/t7505-prepare-commit-msg-hook.sh
+2 -2
@@ -154,7 +154,7 @@ test_expect_success 'with failing hook' '
154 head=`git rev-parse HEAD` &&
155 echo "more" >> file &&
156 git add file &&
157 - ! GIT_EDITOR="\"\$FAKE_EDITOR\"" git commit -c $head
157 + test_must_fail env GIT_EDITOR="\"\$FAKE_EDITOR\"" git commit -c $head
158
159 '
160
@@ -163,7 +163,7 @@ test_expect_success 'with failing hook (--no-verify)' '
163 head=`git rev-parse HEAD` &&
164 echo "more" >> file &&
165 git add file &&
166 - ! GIT_EDITOR="\"\$FAKE_EDITOR\"" git commit --no-verify -c $head
166 + test_must_fail env GIT_EDITOR="\"\$FAKE_EDITOR\"" git commit --no-verify -c $head
167
168 '
169