]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3700-add.sh
tests: apply modern idiom for signaling test failure
[thirdparty/git.git] / t / t3700-add.sh
index 23c3c214c579f7edc8c8d47452921f0daee436db..6902807ff8790c14e47477fb603e50d195cf79c4 100755 (executable)
@@ -177,7 +177,7 @@ test_expect_success 'git add --refresh' '
        git read-tree HEAD &&
        case "$(git diff-index HEAD -- foo)" in
        :100644" "*"M   foo") echo pass;;
-       *) echo fail; (exit 1);;
+       *) echo fail; false;;
        esac &&
        git add --refresh -- foo &&
        test -z "$(git diff-index HEAD -- foo)"