diff options
author | Russell Belfer <rb@github.com> | 2014-03-14 14:51:04 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-04-17 14:43:46 -0700 |
commit | 3816debc13e8d5b96ad40be95a09fe67f6fa5a96 (patch) | |
tree | c72a5307dbe85b972d97f69e66b1dfc5bbe08981 /tests | |
parent | 52bb0476a8ad462c56b1d2c68b6d5f20f947ee50 (diff) | |
download | libgit2-3816debc13e8d5b96ad40be95a09fe67f6fa5a96.tar.gz |
Fix threading tests when threads disabled
Diffstat (limited to 'tests')
-rw-r--r-- | tests/threads/diff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/threads/diff.c b/tests/threads/diff.c index 7f10a699d..5565c4bf1 100644 --- a/tests/threads/diff.c +++ b/tests/threads/diff.c @@ -18,11 +18,12 @@ static void run_in_parallel( int r, t, *id = git__calloc(threads, sizeof(int)); #ifdef GIT_THREADS git_thread *th = git__calloc(threads, sizeof(git_thread)); + cl_assert(th != NULL); #else void *th = NULL; #endif - cl_assert(id != NULL && th != NULL); + cl_assert(id != NULL); for (r = 0; r < repeats; ++r) { _repo = cl_git_sandbox_reopen(); /* reopen sandbox to flush caches */ |