forked from OSchip/llvm-project
[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). llvm-svn: 224569
This commit is contained in:
parent
c9526139bc
commit
fd454ec3d9
|
@ -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
|
||||
|
|
|
@ -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") )
|
||||
|
|
Loading…
Reference in New Issue