mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-20 04:07:26 +00:00
threads: Make the old test suite TLS aware
This commit is contained in:
parent
f25cc58d5c
commit
1e53b52eb9
@ -77,6 +77,8 @@ main(int GIT_UNUSED(argc), char *GIT_UNUSED(argv[]))
|
|||||||
GIT_UNUSED_ARG(argc);
|
GIT_UNUSED_ARG(argc);
|
||||||
GIT_UNUSED_ARG(argv);
|
GIT_UNUSED_ARG(argv);
|
||||||
|
|
||||||
|
git_threads_init();
|
||||||
|
|
||||||
p_umask(0);
|
p_umask(0);
|
||||||
|
|
||||||
failures = 0;
|
failures = 0;
|
||||||
@ -84,6 +86,8 @@ main(int GIT_UNUSED(argc), char *GIT_UNUSED(argv[]))
|
|||||||
for (i = 0; i < GIT_SUITE_COUNT; ++i)
|
for (i = 0; i < GIT_SUITE_COUNT; ++i)
|
||||||
failures += git_testsuite_run(suite_methods[i]());
|
failures += git_testsuite_run(suite_methods[i]());
|
||||||
|
|
||||||
|
git_threads_shutdown();
|
||||||
|
|
||||||
return failures ? -1 : 0;
|
return failures ? -1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user