diff options
Diffstat (limited to 'tests/threads/basic.c')
-rw-r--r-- | tests/threads/basic.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/threads/basic.c b/tests/threads/basic.c index 685452d44..a9310bbd4 100644 --- a/tests/threads/basic.c +++ b/tests/threads/basic.c @@ -49,6 +49,7 @@ void test_threads_basic__set_error(void) run_in_parallel(1, 4, set_error, NULL, NULL); } +#ifdef GIT_THREADS static void *return_normally(void *param) { return param; @@ -59,9 +60,13 @@ static void *exit_abruptly(void *param) git_thread_exit(param); return NULL; } +#endif void test_threads_basic__exit(void) { +#ifndef GIT_THREADS + clar__skip(); +#else git_thread thread; void *result; @@ -74,4 +79,5 @@ void test_threads_basic__exit(void) cl_git_pass(git_thread_create(&thread, return_normally, (void *)232323)); cl_git_pass(git_thread_join(&thread, &result)); cl_assert_equal_sz(232323, (size_t)result); -}
\ No newline at end of file +#endif +} |