summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases/Linux/stress_dtls.c
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-05-28 13:13:30 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-05-28 13:13:30 +0000
commit15d71b598ed19f79a8ed6a816b136a6b8f61a078 (patch)
tree50d562036832769e9cbe39aa9707f56a67ab8909 /compiler-rt/test/asan/TestCases/Linux/stress_dtls.c
parent4b42df03de2d1d43b042312cc7cd4ed5bb1a96a2 (diff)
downloadbcm5719-llvm-15d71b598ed19f79a8ed6a816b136a6b8f61a078.tar.gz
bcm5719-llvm-15d71b598ed19f79a8ed6a816b136a6b8f61a078.zip
[sanitizer] Replace -lpthread with -pthread in tests.
-lpthread does not work on Android. llvm-svn: 209735
Diffstat (limited to 'compiler-rt/test/asan/TestCases/Linux/stress_dtls.c')
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/stress_dtls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/stress_dtls.c b/compiler-rt/test/asan/TestCases/Linux/stress_dtls.c
index 814adf3e8c5..cb901ee5995 100644
--- a/compiler-rt/test/asan/TestCases/Linux/stress_dtls.c
+++ b/compiler-rt/test/asan/TestCases/Linux/stress_dtls.c
@@ -9,7 +9,7 @@
// RUN: %clangxx_asan -x c -DSO_NAME=f0 %s -shared -o %t-f0.so -fPIC
// RUN: %clangxx_asan -x c -DSO_NAME=f1 %s -shared -o %t-f1.so -fPIC
// RUN: %clangxx_asan -x c -DSO_NAME=f2 %s -shared -o %t-f2.so -fPIC
-// RUN: %clangxx_asan %s -ldl -lpthread -o %t
+// RUN: %clangxx_asan %s -ldl -pthread -o %t
// RUN: %run %t 0 3
// RUN: %run %t 2 3
// RUN: ASAN_OPTIONS=verbosity=2 %run %t 10 2 2>&1 | FileCheck %s
@@ -31,7 +31,7 @@
/*
cc=your-compiler
-$cc stress_dtls.c -lpthread -ldl
+$cc stress_dtls.c -pthread -ldl
for((i=0;i<100;i++)); do
$cc -fPIC -shared -DSO_NAME=f$i -o a.out-f$i.so stress_dtls.c;
done
OpenPOWER on IntegriCloud