Commit 7dc3c0fb authored by Alexey Samsonov's avatar Alexey Samsonov
Browse files

[ASan] Explicitly specify -ldl/-lpthread in RUN-lines where needed

llvm-svn: 205623
parent 3f1fa3d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
// Check that --gc-sections does not throw away (or localize) parts of sanitizer
// interface.
// RUN: %clang_asan %s -Wl,--gc-sections -o %t
// RUN: %clang_asan %s -Wl,--gc-sections -ldl -o %t
// RUN: %clang_asan %s -DBUILD_SO -fPIC -o %t-so.so -shared
// RUN: %t 2>&1

+1 −1
Original line number Diff line number Diff line
@@ -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 -o %t
// RUN: %clangxx_asan %s -ldl -lpthread -o %t
// RUN: %t 0 3
// RUN: %t 2 3
// RUN: ASAN_OPTIONS=verbosity=2 %t 10 2 2>&1 | FileCheck %s
+1 −1
Original line number Diff line number Diff line
// Regression test for a leak in tsd:
// https://code.google.com/p/address-sanitizer/issues/detail?id=233
// RUN: %clangxx_asan -O1 %s -o %t
// RUN: %clangxx_asan -O1 %s -lpthread -o %t
// RUN: ASAN_OPTIONS=quarantine_size=1 %t
#include <pthread.h>
#include <stdio.h>
+1 −1
Original line number Diff line number Diff line
// Test that TLS is unpoisoned on thread death.
// REQUIRES: x86_64-supported-target,i386-supported-target

// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1
// RUN: %clangxx_asan -O1 %s -lpthread -o %t && %t 2>&1

#include <assert.h>
#include <pthread.h>
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
// shared object files.

// RUN: %clangxx_asan -O0 %p/SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so
// RUN: %clangxx_asan -O0 %s -o %t
// RUN: %clangxx_asan -O0 %s -ldl -o %t
// RUN: ASAN_OPTIONS=symbolize=0 not %t 2>&1 | %asan_symbolize | FileCheck %s
#include <dlfcn.h>
#include <stdio.h>
Loading