File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 2
2
#include "../../hashmap.h"
3
3
#include "../win32.h"
4
4
#include "fscache.h"
5
+ #include "config.h"
5
6
6
7
static int initialized ;
7
8
static volatile long enabled ;
@@ -397,7 +398,11 @@ int fscache_enable(int enable)
397
398
int result ;
398
399
399
400
if (!initialized ) {
401
+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
402
+
400
403
/* allow the cache to be disabled entirely */
404
+ if (fscache != -1 )
405
+ core_fscache = fscache ;
401
406
if (!core_fscache )
402
407
return 0 ;
403
408
Original file line number Diff line number Diff line change @@ -319,6 +319,9 @@ GIT_TEST_OE_DELTA_SIZE=<n> exercises the uncomon pack-objects code
319
319
path where deltas larger than this limit require extra memory
320
320
allocation for bookkeeping.
321
321
322
+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
323
+ which adds a cache below mingw's lstat and dirent implementations.
324
+
322
325
Naming Tests
323
326
------------
324
327
You can’t perform that action at this time.
0 commit comments