[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:47:28 PST 2016


I will probably add freebsd to the unsupported line in
decorate_proc_maps.cc since procfs isn't mounted by default. Or we can
just move that test to /Linux…

Thank you,

  Filipe

On Mon, Mar 7, 2016 at 2:38 PM, Filipe Cabecinhas
<filcab+llvm.phabricator at gmail.com> wrote:
> 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>
>
>


More information about the llvm-commits mailing list