[compiler-rt] r208535 - [asan] Further fix the test from r208333.

Sergey Matveev earthdok at google.com
Mon May 12 03:33:31 PDT 2014


Author: smatveev
Date: Mon May 12 05:33:31 2014
New Revision: 208535

URL: http://llvm.org/viewvc/llvm-project?rev=208535&view=rev
Log:
[asan] Further fix the test from r208333.

Remove a debug print and some copypasta.

Modified:
    compiler-rt/trunk/test/asan/TestCases/Linux/coverage-module-unloaded.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/coverage-module-unloaded.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/coverage-module-unloaded.cc?rev=208535&r1=208534&r2=208535&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/coverage-module-unloaded.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/coverage-module-unloaded.cc Mon May 12 05:33:31 2014
@@ -2,7 +2,7 @@
 // modules.
 // RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSHARED %s -shared -o %T/libcoverage_module_unloaded_test_1.so -fPIC
 // RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSHARED %s -shared -o %T/libcoverage_module_unloaded_test_2.so -fPIC
-// RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSO_DIR=\"%T\" %s -o %t -Wl,-R,\$ORIGIN -L%T -lcoverage_test
+// RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSO_DIR=\"%T\" %s -o %t
 // RUN: export ASAN_OPTIONS=coverage=1:verbosity=1
 // RUN: %t 2>&1         | FileCheck %s
 // RUN: %t foo 2>&1         | FileCheck %s
@@ -23,7 +23,6 @@ void bar() { printf("bar\n"); }
 
 int main(int argc, char **argv) {
   fprintf(stderr, "PID: %d\n", getpid());
-  fprintf(stderr, "Opening %s\n", SO_DIR "/libcoverage_module_unloaded_test_1.so");
   void *handle1 =
       dlopen(SO_DIR "/libcoverage_module_unloaded_test_1.so", RTLD_LAZY);
   assert(handle1);





More information about the llvm-commits mailing list