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 5
5
#include "../../dir.h"
6
6
#include "../../abspath.h"
7
7
#include "../../trace.h"
8
+ #include "config.h"
8
9
9
10
static int initialized ;
10
11
static volatile long enabled ;
@@ -401,7 +402,11 @@ int fscache_enable(int enable)
401
402
int result ;
402
403
403
404
if (!initialized ) {
405
+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
406
+
404
407
/* allow the cache to be disabled entirely */
408
+ if (fscache != -1 )
409
+ core_fscache = fscache ;
405
410
if (!core_fscache )
406
411
return 0 ;
407
412
Original file line number Diff line number Diff line change @@ -512,6 +512,9 @@ a test and then fails then the whole test run will abort. This can help to make
512
512
sure the expected tests are executed and not silently skipped when their
513
513
dependency breaks or is simply not present in a new environment.
514
514
515
+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
516
+ which adds a cache below mingw's lstat and dirent implementations.
517
+
515
518
Naming Tests
516
519
------------
517
520
You can’t perform that action at this time.
0 commit comments