[PATCH] XFAIL ptrace test on arm
Greg Fitzgerald
gregf at codeaurora.org
Tue May 20 16:09:57 PDT 2014
Renamed COMPILER_RT_TARGET_TRIPLE to COMPILER_RT_TEST_TARGET_TRIPLE
http://reviews.llvm.org/D3855
Files:
CMakeLists.txt
test/lit.common.configured.in
test/sanitizer_common/TestCases/Linux/ptrace.cc
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -137,6 +137,12 @@
set(COMPILER_RT_TEST_COMPILER_ID GNU)
endif()
+# Tests using XFAIL use the first value in COMPILER_RT_TEST_TARGET_TRIPLE
+set(COMPILER_RT_TEST_TARGET_TRIPLE ${TARGET_TRIPLE} CACHE STRING
+ "Default triple for cross-compiled executables")
+string(REPLACE "-" ";" TARGET_TRIPLE_LIST ${COMPILER_RT_TEST_TARGET_TRIPLE})
+list(GET TARGET_TRIPLE_LIST 0 TARGET_ARCH)
+
string(TOLOWER ${CMAKE_SYSTEM_NAME} COMPILER_RT_OS_DIR)
set(COMPILER_RT_LIBRARY_OUTPUT_DIR
${COMPILER_RT_OUTPUT_DIR}/lib/${COMPILER_RT_OS_DIR})
Index: test/lit.common.configured.in
===================================================================
--- test/lit.common.configured.in
+++ test/lit.common.configured.in
@@ -7,10 +7,10 @@
setattr(config, attr, value)
# Generic config options for all compiler-rt lit tests.
-set_default("target_triple", "@TARGET_TRIPLE@")
+set_default("target_triple", "@COMPILER_RT_TEST_TARGET_TRIPLE@")
set_default("target_cflags", "@COMPILER_RT_TEST_COMPILER_CFLAGS@")
set_default("host_arch", "@HOST_ARCH@")
-set_default("target_arch", "@HOST_ARCH@")
+set_default("target_arch", "@TARGET_ARCH@")
set_default("host_os", "@HOST_OS@")
set_default("llvm_build_mode", "@LLVM_BUILD_MODE@")
set_default("llvm_src_root", "@LLVM_SOURCE_DIR@")
Index: test/sanitizer_common/TestCases/Linux/ptrace.cc
===================================================================
--- test/sanitizer_common/TestCases/Linux/ptrace.cc
+++ test/sanitizer_common/TestCases/Linux/ptrace.cc
@@ -1,4 +1,5 @@
// RUN: %clangxx -O0 %s -o %t && %run %t
+// XFAIL: arm
#include <assert.h>
#include <signal.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3855.9646.patch
Type: text/x-patch
Size: 1754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140520/cfcc68fd/attachment.bin>
More information about the llvm-commits
mailing list