[PATCH] D17928: [sanitizer_common tests] Make Darwin a Posix system and bring the stable-runtime definition from ASan tests.
Filipe Cabecinhas via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 7 06:38:14 PST 2016
filcab created this revision.
filcab added reviewers: samsonov, rengolin, t.p.northover, eugenis.
filcab added a subscriber: llvm-commits.
This is an initial setup in order to move some additional tests from Linux onto Posix.
http://reviews.llvm.org/D17928
Files:
test/sanitizer_common/TestCases/Posix/decorate_proc_maps.cc
test/sanitizer_common/TestCases/Posix/lit.local.cfg
test/sanitizer_common/lit.common.cfg
Index: test/sanitizer_common/lit.common.cfg
===================================================================
--- test/sanitizer_common/lit.common.cfg
+++ test/sanitizer_common/lit.common.cfg
@@ -9,6 +9,9 @@
if config.tool_name == "asan":
tool_cflags = ["-fsanitize=address"]
tool_options = "ASAN_OPTIONS"
+ # Get the same definition from asan's lit.cfg
+ if config.target_arch != 'arm' and config.target_arch != 'armhf' and config.target_arch != 'aarch64':
+ config.available_features.add('stable-runtime')
elif config.tool_name == "tsan":
tool_cflags = ["-fsanitize=thread"]
tool_options = "TSAN_OPTIONS"
Index: test/sanitizer_common/TestCases/Posix/lit.local.cfg
===================================================================
--- test/sanitizer_common/TestCases/Posix/lit.local.cfg
+++ test/sanitizer_common/TestCases/Posix/lit.local.cfg
@@ -5,5 +5,5 @@
root = getRoot(config)
-if root.host_os in ['Windows', 'Darwin']:
+if root.host_os in ['Windows']:
config.unsupported = True
Index: test/sanitizer_common/TestCases/Posix/decorate_proc_maps.cc
===================================================================
--- test/sanitizer_common/TestCases/Posix/decorate_proc_maps.cc
+++ test/sanitizer_common/TestCases/Posix/decorate_proc_maps.cc
@@ -1,5 +1,6 @@
// RUN: %clangxx -g %s -o %t
// RUN: %env_tool_opts=decorate_proc_maps=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%tool_name
+// UNSUPPORTED: darwin
// REQUIRES: stable-runtime
#include <errno.h>
#include <fcntl.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17928.49956.patch
Type: text/x-patch
Size: 1523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160307/952a96e8/attachment.bin>
More information about the llvm-commits
mailing list