Commit 52e05f8 1 parent a059205 commit 52e05f8 Copy full SHA for 52e05f8
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 3
3
#include "../win32.h"
4
4
#include "fscache.h"
5
5
#include "../../dir.h"
6
+ #include "config.h"
6
7
7
8
static int initialized ;
8
9
static volatile long enabled ;
@@ -399,7 +400,11 @@ int fscache_enable(int enable)
399
400
int result ;
400
401
401
402
if (!initialized ) {
403
+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
404
+
402
405
/* allow the cache to be disabled entirely */
406
+ if (fscache != -1 )
407
+ core_fscache = fscache ;
403
408
if (!core_fscache )
404
409
return 0 ;
405
410
Original file line number Diff line number Diff line change @@ -502,6 +502,9 @@ a test and then fails then the whole test run will abort. This can help to make
502
502
sure the expected tests are executed and not silently skipped when their
503
503
dependency breaks or is simply not present in a new environment.
504
504
505
+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
506
+ which adds a cache below mingw's lstat and dirent implementations.
507
+
505
508
Naming Tests
506
509
------------
507
510
You can’t perform that action at this time.
0 commit comments