diff options
| author | Vicent Martà <vicent@github.com> | 2012-01-31 14:58:40 -0800 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-01-31 14:58:40 -0800 |
| commit | f82d996e755638ff983e24d9e5966ff317138c21 (patch) | |
| tree | 1d2fd714d2dbe79f95c38058521d7fabc1d03771 | |
| parent | 279afd2a514160754eeba8e5db84600486f70761 (diff) | |
| parent | 1e53b52eb927e5a7b59d72e6c6800af8bcf62d11 (diff) | |
| download | libgit2-f82d996e755638ff983e24d9e5966ff317138c21.tar.gz | |
Merge pull request #544 from nulltoken/fix/thread-tests
threads: Make the old test suite TLS aware...
| -rw-r--r-- | tests/test_main.c | 4 |
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; } |
