File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 55#include "../../dir.h"
66#include "../../abspath.h"
77#include "../../trace.h"
8+ #include "config.h"
89
910static int initialized ;
1011static volatile long enabled ;
@@ -401,7 +402,11 @@ int fscache_enable(int enable)
401402 int result ;
402403
403404 if (!initialized ) {
405+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
406+
404407 /* allow the cache to be disabled entirely */
408+ if (fscache != -1 )
409+ core_fscache = fscache ;
405410 if (!core_fscache )
406411 return 0 ;
407412
Original file line number Diff line number Diff line change @@ -505,6 +505,9 @@ a test and then fails then the whole test run will abort. This can help to make
505505sure the expected tests are executed and not silently skipped when their
506506dependency breaks or is simply not present in a new environment.
507507
508+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
509+ which adds a cache below mingw's lstat and dirent implementations.
510+
508511Naming Tests
509512------------
510513
You can’t perform that action at this time.
0 commit comments