[cfe-commits] r117449 - /cfe/trunk/tools/c-index-test/c-index-test.c
Douglas Gregor
dgregor at apple.com
Wed Oct 27 09:00:01 PDT 2010
Author: dgregor
Date: Wed Oct 27 11:00:01 2010
New Revision: 117449
URL: http://llvm.org/viewvc/llvm-project?rev=117449&view=rev
Log:
Add an environment variable that allows us to turn off threading in c-index-test
Modified:
cfe/trunk/tools/c-index-test/c-index-test.c
Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=117449&r1=117448&r2=117449&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Wed Oct 27 11:00:01 2010
@@ -1599,6 +1599,9 @@
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);
More information about the cfe-commits
mailing list