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 ;
@@ -393,7 +394,11 @@ int fscache_enable(int enable)
393394 int result ;
394395
395396 if (!initialized ) {
397+ int fscache = git_env_bool ("GIT_TEST_FSCACHE" , -1 );
398+
396399 /* allow the cache to be disabled entirely */
400+ if (fscache != -1 )
401+ core_fscache = fscache ;
397402 if (!core_fscache )
398403 return 0 ;
399404
Original file line number Diff line number Diff line change @@ -425,6 +425,9 @@ GIT_TEST_DEFAULT_HASH=<hash-algo> specifies which hash algorithm to
425425use in the test scripts. Recognized values for <hash-algo> are "sha1"
426426and "sha256".
427427
428+ GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
429+ which adds a cache below mingw's lstat and dirent implementations.
430+
428431Naming Tests
429432------------
430433
You can’t perform that action at this time.
0 commit comments