]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t7503-pre-commit-hook.sh
Makefile: add missing dependency on http.h
[git.git] / t / t7503-pre-commit-hook.sh
index d787cac2f7c09c0d84cb4cdfdf68401b660d3c6c..8528f64c8d1491fd3c279f030b6f8aee2050cdf7 100755 (executable)
@@ -52,11 +52,11 @@ cat > "$HOOK" <<EOF
 exit 1
 EOF
 
-test_expect_failure 'with failing hook' '
+test_expect_success 'with failing hook' '
 
        echo "another" >> file &&
        git add file &&
-       git commit -m "another"
+       test_must_fail git commit -m "another"
 
 '
 
@@ -69,7 +69,7 @@ test_expect_success '--no-verify with failing hook' '
 '
 
 chmod -x "$HOOK"
-test_expect_success 'with non-executable hook' '
+test_expect_success POSIXPERM 'with non-executable hook' '
 
        echo "content" >> file &&
        git add file &&
@@ -77,7 +77,7 @@ test_expect_success 'with non-executable hook' '
 
 '
 
-test_expect_success '--no-verify with non-executable hook' '
+test_expect_success POSIXPERM '--no-verify with non-executable hook' '
 
        echo "more content" >> file &&
        git add file &&