forked from OSchip/llvm-project
[asan] Enable asan_and_llvm_coverage_test.cc on Android
Test just needs profile. llvm-svn: 313438
This commit is contained in:
parent
0edfea5340
commit
581fbc61b2
|
@ -9,6 +9,11 @@ configure_lit_site_cfg(
|
|||
# add_subdirectory(BlocksRuntime)
|
||||
|
||||
set(SANITIZER_COMMON_LIT_TEST_DEPS)
|
||||
|
||||
if (COMPILER_RT_HAS_PROFILE)
|
||||
list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS profile)
|
||||
endif()
|
||||
|
||||
if(COMPILER_RT_STANDALONE_BUILD)
|
||||
add_executable(FileCheck IMPORTED GLOBAL)
|
||||
set_property(TARGET FileCheck PROPERTY IMPORTED_LOCATION ${LLVM_TOOLS_BINARY_DIR}/FileCheck)
|
||||
|
@ -23,9 +28,6 @@ if(NOT ANDROID)
|
|||
list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS
|
||||
clang clang-headers FileCheck count not llvm-config llvm-nm llvm-objdump
|
||||
llvm-readobj llvm-symbolizer compiler-rt-headers sancov)
|
||||
if (COMPILER_RT_HAS_PROFILE)
|
||||
list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS profile)
|
||||
endif()
|
||||
if (WIN32)
|
||||
list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS KillTheDoctor)
|
||||
endif()
|
||||
|
|
|
@ -31,9 +31,7 @@ set(ASAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
|
|||
if(NOT COMPILER_RT_STANDALONE_BUILD)
|
||||
list(APPEND ASAN_TEST_DEPS asan)
|
||||
if(NOT APPLE AND COMPILER_RT_HAS_LLD)
|
||||
list(APPEND ASAN_TEST_DEPS
|
||||
lld
|
||||
)
|
||||
list(APPEND ASAN_TEST_DEPS lld)
|
||||
endif()
|
||||
endif()
|
||||
set(ASAN_DYNAMIC_TEST_DEPS ${ASAN_TEST_DEPS})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clangxx_asan -coverage -O0 %s -o %t
|
||||
// RUN: %env_asan_opts=check_initialization_order=1 %run %t 2>&1 | FileCheck %s
|
||||
// XFAIL: android
|
||||
|
||||
// We don't really support running tests using profile runtime on Windows.
|
||||
// UNSUPPORTED: win32
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Reference in New Issue