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 33#include "../win32.h"
44#include "fscache.h"
55#include "../../dir.h"
6+ #include "config.h"
67
78static int initialized ;
89static volatile long enabled ;
@@ -399,7 +400,11 @@ int fscache_enable(int enable)
399400 int result ;
400401
401402 if (!initialized ) {
403+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
404+
402405 /* allow the cache to be disabled entirely */
406+ if (fscache != -1 )
407+ core_fscache = fscache ;
403408 if (!core_fscache )
404409 return 0 ;
405410
Original file line number Diff line number Diff line change @@ -472,6 +472,9 @@ a test and then fails then the whole test run will abort. This can help to make
472472sure the expected tests are executed and not silently skipped when their
473473dependency breaks or is simply not present in a new environment.
474474
475+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
476+ which adds a cache below mingw's lstat and dirent implementations.
477+
475478Naming Tests
476479------------
477480
You can’t perform that action at this time.
0 commit comments