mirror of
https://github.com/git/git.git
synced 2026-01-17 06:13:11 +00:00
fscache: add GIT_TEST_FSCACHE support
Add support to fscache to enable running the entire test suite with the fscache enabled. Signed-off-by: Ben Peart <benpeart@microsoft.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
d54ab6127a
commit
366faa3940
@@ -2,6 +2,7 @@
|
||||
#include "../../hashmap.h"
|
||||
#include "../win32.h"
|
||||
#include "fscache.h"
|
||||
#include "config.h"
|
||||
|
||||
static int initialized;
|
||||
static volatile long enabled;
|
||||
@@ -353,7 +354,11 @@ int fscache_enable(int enable)
|
||||
int result;
|
||||
|
||||
if (!initialized) {
|
||||
int fscache = git_env_bool("GIT_TEST_FSCACHE", -1);
|
||||
|
||||
/* allow the cache to be disabled entirely */
|
||||
if (fscache != -1)
|
||||
core_fscache = fscache;
|
||||
if (!core_fscache)
|
||||
return 0;
|
||||
|
||||
|
||||
3
t/README
3
t/README
@@ -397,6 +397,9 @@ GIT_TEST_SIDEBAND_ALL=<boolean>, when true, overrides the
|
||||
fetch-pack to not request sideband-all (even if the server advertises
|
||||
sideband-all).
|
||||
|
||||
GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
|
||||
which adds a cache below mingw's lstat and dirent implementations.
|
||||
|
||||
Naming Tests
|
||||
------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user