Skip to content
Permalink
Browse files

Merge pull request #1911 from benpeart/git_test_fscache-gfw

fscache: add GIT_TEST_FSCACHE support
  • Loading branch information...
dscho committed Nov 5, 2018
2 parents af8558d + 8ce7855 commit 5af6eebdbf23741d5a3082e0518eeb81f71f15b0
Showing with 8 additions and 0 deletions.
  1. +5 −0 compat/win32/fscache.c
  2. +3 −0 t/README
@@ -2,6 +2,7 @@
#include "../../hashmap.h"
#include "../win32.h"
#include "fscache.h"
#include "config.h"

static int initialized;
static volatile long enabled;
@@ -397,7 +398,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;

@@ -319,6 +319,9 @@ GIT_TEST_OE_DELTA_SIZE=<n> exercises the uncomon pack-objects code
path where deltas larger than this limit require extra memory
allocation for bookkeeping.

GIT_TEST_FSCACHE=<boolean> exercises the uncommon fscache code path
which adds a cache below mingw's lstat and dirent implementations.

Naming Tests
------------

0 comments on commit 5af6eeb

Please sign in to comment.
You can’t perform that action at this time.