[PATCH] D32150: [XRay] [compiler-rt] Skip tests that use 'llvm_xray' for standalone builds.
Keith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 10:33:40 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL300716: Skip tests that use 'llvm_xray' for standalone builds. (authored by kpw).
Changed prior to commit:
https://reviews.llvm.org/D32150?vs=95524&id=95778#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32150
Files:
compiler-rt/trunk/test/xray/TestCases/Linux/fdr-mode.cc
compiler-rt/trunk/test/xray/TestCases/Linux/fdr-thread-order.cc
compiler-rt/trunk/test/xray/lit.site.cfg.in
Index: compiler-rt/trunk/test/xray/lit.site.cfg.in
===================================================================
--- compiler-rt/trunk/test/xray/lit.site.cfg.in
+++ compiler-rt/trunk/test/xray/lit.site.cfg.in
@@ -5,6 +5,10 @@
config.xray_lit_source_dir = "@XRAY_LIT_SOURCE_DIR@"
config.target_cflags = "@XRAY_TEST_TARGET_CFLAGS@"
config.target_arch = "@XRAY_TEST_TARGET_ARCH@"
+config.built_with_llvm = ("@COMPILER_RT_STANDALONE_BUILD@" == "FALSE")
+
+if config.built_with_llvm:
+ config.available_features.add('built-in-llvm-tree')
# Load common config for all compiler-rt lit tests
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
Index: compiler-rt/trunk/test/xray/TestCases/Linux/fdr-mode.cc
===================================================================
--- compiler-rt/trunk/test/xray/TestCases/Linux/fdr-mode.cc
+++ compiler-rt/trunk/test/xray/TestCases/Linux/fdr-mode.cc
@@ -7,6 +7,7 @@
// RUN: rm fdr-unwrite-test-*
// FIXME: Make llvm-xray work on non-x86_64 as well.
// REQUIRES: x86_64-linux
+// REQUIRES: built-in-llvm-tree
#include "xray/xray_log_interface.h"
#include <cassert>
Index: compiler-rt/trunk/test/xray/TestCases/Linux/fdr-thread-order.cc
===================================================================
--- compiler-rt/trunk/test/xray/TestCases/Linux/fdr-thread-order.cc
+++ compiler-rt/trunk/test/xray/TestCases/Linux/fdr-thread-order.cc
@@ -4,6 +4,8 @@
// RUN: rm fdr-thread-order.*
// FIXME: Make llvm-xray work on non-x86_64 as well.
// REQUIRES: x86_64-linux
+// REQUIRES: built-in-llvm-tree
+
#include "xray/xray_log_interface.h"
#include <thread>
#include <cassert>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32150.95778.patch
Type: text/x-patch
Size: 1671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170419/7125797f/attachment.bin>
More information about the llvm-commits
mailing list