summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index fb9ee38..569ca14 100644
--- a/tests/lib
+++ b/tests/lib
@@ -349,6 +349,10 @@ t-git-dir-check () {
esac
}
+t-expect-fsck-fail () {
+ expect_fsck_fail+=" $1"
+}
+
t-git-fsck () {
git fsck --no-dangling --strict || ${expect_fsck_fail:+true} false
}