From 48f09c6c475e158588df49cd978553fbb0d1a603 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 5 Apr 2017 11:59:03 +0100 Subject: [PATCH] win32: only set `git_win32__retries` where it exists --- tests/threads/diff.c | 5 +++++ 1 file changed, 5 insertions(+) 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)