summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-11-10 07:00:55 +0000
committerDean Michael Berris <dberris@google.com>2017-11-10 07:00:55 +0000
commit30cc2fefa8159586f7a44b70f3e2238fd613ad7b (patch)
treefec334efd7064b5ddb0abcb1e8a19e6c31f447d8 /test
parentac4508cf5b04a7e52c4f565b55f6787a9ea47bc0 (diff)
Revert "[XRay][darwin] Initial XRay in Darwin Support"
This reverts r317875. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@317877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/xray/TestCases/Darwin/always-never-instrument.cc23
-rw-r--r--test/xray/TestCases/Darwin/lit.local.cfg9
-rw-r--r--test/xray/TestCases/Linux/lit.local.cfg9
-rw-r--r--test/xray/lit.cfg2
4 files changed, 1 insertions, 42 deletions
diff --git a/test/xray/TestCases/Darwin/always-never-instrument.cc b/test/xray/TestCases/Darwin/always-never-instrument.cc
deleted file mode 100644
index 4e196859b..000000000
--- a/test/xray/TestCases/Darwin/always-never-instrument.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-// Test that the always/never instrument lists apply.
-// RUN: echo "fun:main" > %tmp-always.txt
-// RUN: echo "fun:__xray*" > %tmp-never.txt
-// RUN: %clangxx_xray \
-// RUN: -fxray-never-instrument=%tmp-never.txt \
-// RUN: -fxray-always-instrument=%tmp-always.txt \
-// RUN: %s -o %t
-// RUN: %llvm_xray extract -symbolize %t | \
-// RUN: FileCheck %s --check-prefix NOINSTR
-// RUN: %llvm_xray extract -symbolize %t | \
-// RUN: FileCheck %s --check-prefix ALWAYSINSTR
-// REQUIRES: x86_64-linux
-// REQUIRES: built-in-llvm-tree
-
-// NOINSTR-NOT: {{.*__xray_NeverInstrumented.*}}
-int __xray_NeverInstrumented() {
- return 0;
-}
-
-// ALWAYSINSTR: {{.*function-name:.*main.*}}
-int main(int argc, char *argv[]) {
- return __xray_NeverInstrumented();
-}
diff --git a/test/xray/TestCases/Darwin/lit.local.cfg b/test/xray/TestCases/Darwin/lit.local.cfg
deleted file mode 100644
index a85dfcd24..000000000
--- a/test/xray/TestCases/Darwin/lit.local.cfg
+++ /dev/null
@@ -1,9 +0,0 @@
-def getRoot(config):
- if not config.parent:
- return config
- return getRoot(config.parent)
-
-root = getRoot(config)
-
-if root.host_os not in ['Darwin']:
- config.unsupported = True
diff --git a/test/xray/TestCases/Linux/lit.local.cfg b/test/xray/TestCases/Linux/lit.local.cfg
deleted file mode 100644
index 57271b807..000000000
--- a/test/xray/TestCases/Linux/lit.local.cfg
+++ /dev/null
@@ -1,9 +0,0 @@
-def getRoot(config):
- if not config.parent:
- return config
- return getRoot(config.parent)
-
-root = getRoot(config)
-
-if root.host_os not in ['Linux']:
- config.unsupported = True
diff --git a/test/xray/lit.cfg b/test/xray/lit.cfg
index c6bea52b1..d5e40975d 100644
--- a/test/xray/lit.cfg
+++ b/test/xray/lit.cfg
@@ -40,7 +40,7 @@ config.substitutions.append(
# Default test suffixes.
config.suffixes = ['.c', '.cc', '.cpp']
-if config.host_os not in ['Linux', 'Darwin']:
+if config.host_os not in ['Linux']:
config.unsupported = True
elif '64' not in config.host_arch:
if 'arm' in config.host_arch: