summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-12-15 09:39:51 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-15 09:39:52 -0800
commit63a2e8b41e478a86fd98f86fe67b6f6d5b15f8cf (patch)
tree0cfc19ce4bca50ffd40f2e8588d91706d37527e2 /t
parentMerge branch 'ew/cbtree-remove-unused-and-broken-cb-unlink' (diff)
parenttests: disable fsync everywhere (diff)
downloadtgif-63a2e8b41e478a86fd98f86fe67b6f6d5b15f8cf.tar.xz
Merge branch 'ew/test-wo-fsync'
Allow running our tests while disabling fsync. * ew/test-wo-fsync: tests: disable fsync everywhere
Diffstat (limited to 't')
-rw-r--r--t/test-lib.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index d1750bf615..0f7a137c7d 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -496,6 +496,13 @@ then
export GIT_PERL_FATAL_WARNINGS
fi
+case $GIT_TEST_FSYNC in
+'')
+ GIT_TEST_FSYNC=0
+ export GIT_TEST_FSYNC
+ ;;
+esac
+
# Add libc MALLOC and MALLOC_PERTURB test
# only if we are not executing the test with valgrind
if test -n "$valgrind" ||