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 22#include "../../hashmap.h"
33#include "../win32.h"
44#include "fscache.h"
5+ #include "config.h"
56
67static int initialized ;
78static volatile long enabled ;
@@ -397,7 +398,11 @@ int fscache_enable(int enable)
397398 int result ;
398399
399400 if (!initialized ) {
401+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
402+
400403 /* allow the cache to be disabled entirely */
404+ if (fscache != -1 )
405+ core_fscache = fscache ;
401406 if (!core_fscache )
402407 return 0 ;
403408
Original file line number Diff line number Diff line change @@ -329,6 +329,9 @@ GIT_TEST_OE_DELTA_SIZE=<n> exercises the uncomon pack-objects code
329329path where deltas larger than this limit require extra memory
330330allocation for bookkeeping.
331331
332+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
333+ which adds a cache below mingw's lstat and dirent implementations.
334+
332335Naming Tests
333336------------
334337
You can’t perform that action at this time.
0 commit comments