aboutsummaryrefslogtreecommitdiff
path: root/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-27 16:00:01 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-27 16:00:01 +0000
commit6160598bcd6549757525cbb463a551a0ad1615e4 (patch)
treec13e37834498e539eb14a1eaaa709b01af830c63 /tools/c-index-test/c-index-test.c
parent157a3ff14d2dfe21c63fec34f07bf917d0ccf789 (diff)
Add an environment variable that allows us to turn off threading in c-index-test
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r--tools/c-index-test/c-index-test.c3
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);