summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-01-29 15:11:09 +0100
committernulltoken <emeric.fermas@gmail.com>2012-01-29 15:11:09 +0100
commit1e53b52eb927e5a7b59d72e6c6800af8bcf62d11 (patch)
treef8f945458753ef5fca2666f9649b3a519ff2d17b /tests
parentf25cc58d5cd630aa379bf894c5b78feb824bb647 (diff)
downloadlibgit2-1e53b52eb927e5a7b59d72e6c6800af8bcf62d11.tar.gz
threads: Make the old test suite TLS aware
Diffstat (limited to 'tests')
-rw-r--r--tests/test_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_main.c b/tests/test_main.c
index 1ebb22299..732d25a9d 100644
--- a/tests/test_main.c
+++ b/tests/test_main.c
@@ -77,6 +77,8 @@ main(int GIT_UNUSED(argc), char *GIT_UNUSED(argv[]))
GIT_UNUSED_ARG(argc);
GIT_UNUSED_ARG(argv);
+ git_threads_init();
+
p_umask(0);
failures = 0;
@@ -84,6 +86,8 @@ main(int GIT_UNUSED(argc), char *GIT_UNUSED(argv[]))
for (i = 0; i < GIT_SUITE_COUNT; ++i)
failures += git_testsuite_run(suite_methods[i]());
+ git_threads_shutdown();
+
return failures ? -1 : 0;
}