From 8ac87a373b616aaec3ce40b51a801d3036a0f2e5 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Tue, 13 May 2014 00:02:18 +0000 Subject: [PATCH] Mark ptrace test as Linux-specific git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208643 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/sanitizer_common/TestCases/Linux/lit.local.cfg | 9 +++++++++ test/sanitizer_common/TestCases/{ => Linux}/ptrace.cc | 0 2 files changed, 9 insertions(+) create mode 100644 test/sanitizer_common/TestCases/Linux/lit.local.cfg rename test/sanitizer_common/TestCases/{ => Linux}/ptrace.cc (100%) diff --git a/test/sanitizer_common/TestCases/Linux/lit.local.cfg b/test/sanitizer_common/TestCases/Linux/lit.local.cfg new file mode 100644 index 000000000..57271b807 --- /dev/null +++ b/test/sanitizer_common/TestCases/Linux/lit.local.cfg @@ -0,0 +1,9 @@ +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/sanitizer_common/TestCases/ptrace.cc b/test/sanitizer_common/TestCases/Linux/ptrace.cc similarity index 100% rename from test/sanitizer_common/TestCases/ptrace.cc rename to test/sanitizer_common/TestCases/Linux/ptrace.cc -- 2.11.4.GIT