]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/perf/p7519-fsmonitor.sh
Merge branch 'jh/fsmonitor-prework'
[thirdparty/git.git] / t / perf / p7519-fsmonitor.sh
index aa0ea0e2ec8c2fc7486cb4a51b6d9c85233ea01e..b657564aed603557a86916df9f450c6e067af74e 100755 (executable)
@@ -157,7 +157,12 @@ setup_for_fsmonitor() {
 
        git config core.fsmonitor "$INTEGRATION_SCRIPT" &&
        git update-index --fsmonitor 2>error &&
-       test_must_be_empty error  # ensure no silent error
+       if test_have_prereq WATCHMAN
+       then
+               test_must_be_empty error  # ensure no silent error
+       else
+               grep "Empty last update token" error
+       fi
 }
 
 test_perf_w_drop_caches () {