Message ID | f9d0fd594fdb515e3a3cd4bd14b8b09532ccc483.1616016143.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 7e5aa13d2cb590f7f21f195312ae1cf7de1cdd75 |
Headers | show |
Series | teach git to respect fsmonitor in diff-index | expand |
diff --git a/t/helper/test-chmtime.c b/t/helper/test-chmtime.c index aa22af48c2a6..524b55ca496c 100644 --- a/t/helper/test-chmtime.c +++ b/t/helper/test-chmtime.c @@ -109,9 +109,9 @@ int cmd__chmtime(int argc, const char **argv) uintmax_t mtime; if (stat(argv[i], &sb) < 0) { - fprintf(stderr, "Failed to stat %s: %s\n", + fprintf(stderr, "Failed to stat %s: %s. Skipping\n", argv[i], strerror(errno)); - return 1; + continue; } #ifdef GIT_WINDOWS_NATIVE diff --git a/t/perf/p7519-fsmonitor.sh b/t/perf/p7519-fsmonitor.sh index b657564aed60..5eb5044a103c 100755 --- a/t/perf/p7519-fsmonitor.sh +++ b/t/perf/p7519-fsmonitor.sh @@ -216,6 +216,10 @@ test_fsmonitor_suite() { git diff ' + test_perf_w_drop_caches "diff HEAD ($DESC)" ' + git diff HEAD + ' + test_perf_w_drop_caches "diff -- 0_files ($DESC)" ' git diff -- 1_file '