[compiler-rt] r224569 - [asan] Resurrect sanitize-coverage test on Android.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Fri Dec 19 02:40:15 PST 2014


Author: eugenis
Date: Fri Dec 19 04:40:14 2014
New Revision: 224569

URL: http://llvm.org/viewvc/llvm-project?rev=224569&view=rev
Log:
[asan] Resurrect sanitize-coverage test on Android.

The test got silently disabled because of a typo in the lit config.
Also, compiler flags have changed (asan-coverage -> fsanitize-coverage).

Modified:
    compiler-rt/trunk/test/asan/TestCases/Android/coverage-android.cc
    compiler-rt/trunk/test/asan/TestCases/Android/lit.local.cfg

Modified: compiler-rt/trunk/test/asan/TestCases/Android/coverage-android.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Android/coverage-android.cc?rev=224569&r1=224568&r2=224569&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Android/coverage-android.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Android/coverage-android.cc Fri Dec 19 04:40:14 2014
@@ -1,8 +1,8 @@
 // Test for direct coverage writing with dlopen.
 
 // Test normal exit.
-// RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSHARED %s -shared -o %T/libcoverage_android_test_1.so -fPIC
-// RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSO_DIR=\"%device\" %s -o %t
+// RUN: %clangxx_asan -fsanitize-coverage=1 -DSHARED %s -shared -o %T/libcoverage_android_test_1.so -fPIC
+// RUN: %clangxx_asan -fsanitize-coverage=1 -DSO_DIR=\"%device\" %s -o %t
 
 // RUN: adb shell rm -rf %device/coverage-android
 // RUN: rm -rf %T/coverage-android
@@ -18,8 +18,8 @@
 
 
 // Test sudden death.
-// RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSHARED -DKILL %s -shared -o %T/libcoverage_android_test_1.so -fPIC
-// RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSO_DIR=\"%device\" %s -o %t
+// RUN: %clangxx_asan -fsanitize-coverage=1 -DSHARED -DKILL %s -shared -o %T/libcoverage_android_test_1.so -fPIC
+// RUN: %clangxx_asan -fsanitize-coverage=1 -DSO_DIR=\"%device\" %s -o %t
 
 // RUN: adb shell rm -rf %device/coverage-android-kill
 // RUN: rm -rf %T/coverage-android-kill

Modified: compiler-rt/trunk/test/asan/TestCases/Android/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Android/lit.local.cfg?rev=224569&r1=224568&r2=224569&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Android/lit.local.cfg (original)
+++ compiler-rt/trunk/test/asan/TestCases/Android/lit.local.cfg Fri Dec 19 04:40:14 2014
@@ -5,7 +5,7 @@ def getRoot(config):
 
 root = getRoot(config)
 
-if root.android != "TRUE":
+if root.android != "1":
   config.unsupported = True
 
 config.substitutions.append( ("%device", "/data/local/tmp/Output") )





More information about the llvm-commits mailing list