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 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 ;
@@ -398,7 +399,11 @@ int fscache_enable(int enable)
398
399
int result ;
399
400
400
401
if (!initialized ) {
402
+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
403
+
401
404
/* allow the cache to be disabled entirely */
405
+ if (fscache != -1 )
406
+ core_fscache = fscache ;
402
407
if (!core_fscache )
403
408
return 0 ;
404
409
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
472
472
sure the expected tests are executed and not silently skipped when their
473
473
dependency breaks or is simply not present in a new environment.
474
474
475
+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
476
+ which adds a cache below mingw's lstat and dirent implementations.
477
+
475
478
Naming Tests
476
479
------------
477
480
You can’t perform that action at this time.
0 commit comments