summaryrefslogtreecommitdiff
path: root/test/tsan/pthread_atfork_deadlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/pthread_atfork_deadlock.c')
-rw-r--r--test/tsan/pthread_atfork_deadlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/pthread_atfork_deadlock.c b/test/tsan/pthread_atfork_deadlock.c
index 965de05b4..0f33b9022 100644
--- a/test/tsan/pthread_atfork_deadlock.c
+++ b/test/tsan/pthread_atfork_deadlock.c
@@ -1,4 +1,4 @@
-// RUN: %clang_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
+// RUN: %clang_tsan -O1 %s -lpthread -o %t && %deflake %run %t | FileCheck %s
// Regression test for
// https://code.google.com/p/thread-sanitizer/issues/detail?id=61
// When the data race was reported, pthread_atfork() handler used to be