[PATCH] XFAIL ptrace test on arm

Greg Fitzgerald gregf at codeaurora.org
Tue May 20 16:39:14 PDT 2014


Closed by commit rL209256 (authored by @garious).

http://reviews.llvm.org/D3855

Files:
  compiler-rt/trunk/CMakeLists.txt
  compiler-rt/trunk/test/lit.common.configured.in
  compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/ptrace.cc

Index: compiler-rt/trunk/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/CMakeLists.txt
+++ compiler-rt/trunk/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 COMPILER_RT_TEST_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: compiler-rt/trunk/test/lit.common.configured.in
===================================================================
--- compiler-rt/trunk/test/lit.common.configured.in
+++ compiler-rt/trunk/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", "@COMPILER_RT_TEST_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: compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/ptrace.cc
===================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/ptrace.cc
+++ compiler-rt/trunk/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.9647.patch
Type: text/x-patch
Size: 1950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140520/f5856c05/attachment.bin>


More information about the llvm-commits mailing list