diff options
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index c95fb307a6..eae6946982 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -1599,6 +1599,9 @@ int main(int argc, const char **argv) { pthread_t thread; int res; + if (getenv("CINDEXTEST_NOTHREADS")) + return cindextest_main(argc, argv); + client_data.argc = argc; client_data.argv = argv; res = pthread_create(&thread, 0, thread_runner, &client_data); |