summaryrefslogtreecommitdiff
path: root/tests/threads
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-04-05 11:59:03 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2017-04-05 11:59:03 +0100
commit48f09c6c475e158588df49cd978553fbb0d1a603 (patch)
treee5f2da032fff24c5533cb9baa0dc1a64c6b1b380 /tests/threads
parent89d403cce27eca2ee58d2d5fe7b1bf64b59eaf3c (diff)
downloadlibgit2-48f09c6c475e158588df49cd978553fbb0d1a603.tar.gz
win32: only set `git_win32__retries` where it exists
Diffstat (limited to 'tests/threads')
-rw-r--r--tests/threads/diff.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/threads/diff.c b/tests/threads/diff.c
index 92fd7061b..90d35b15e 100644
--- a/tests/threads/diff.c
+++ b/tests/threads/diff.c
@@ -25,14 +25,19 @@ static int _retries;
void test_threads_diff__initialize(void)
{
+#ifdef GIT_WIN32
_retries = git_win32__retries;
git_win32__retries = 1;
+#endif
}
void test_threads_diff__cleanup(void)
{
cl_git_sandbox_cleanup();
+
+#ifdef GIT_WIN32
git_win32__retries = _retries;
+#endif
}
static void setup_trees(void)