[PATCH] D25538: Make lsan complain loudly when running under ptrace

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 27 11:35:47 PST 2016


having strace on the bot would be great.

On Thu, Dec 15, 2016 at 11:29 PM, Nico Weber via Phabricator <
reviews at reviews.llvm.org> wrote:

> thakis added inline comments.
>
>
> ================
> Comment at: test/lsan/TestCases/strace_test.cc:3
> +// RUN: %clangxx_lsan %s -o %t
> +// RUN: not strace -o /dev/null %run %t 2>&1 | FileCheck %s
> +
> ----------------
> Apparently strace doesn't exist on all the bots:
>
> http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_
> 64-debian-fast/builds/971/steps/test/logs/stdio
> ```
> /home/llvmbb/llvm-build-dir/llvm-clang-lld-x86_64-debian-
> fast/llvm.src/projects/compiler-rt/test/lsan/TestCases/strace_test.cc:13:11:
> error: expected string not found in input
> // CHECK: LeakSanitizer has encountered a fatal error
>           ^
> <stdin>:1:1: note: scanning from here
> Error: Unable to find `strace' in PATH: No such file or directory
> ```
>
> Maybe this needs a "requires:" line, or that bot needs strace installed.
> (Not sure, and not my bot, so I don't care much, just happened to see it.)
>
>
> https://reviews.llvm.org/D25538
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161227/2a1c4dd2/attachment.html>


More information about the llvm-commits mailing list