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

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 15 23:29:15 PST 2016


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





More information about the llvm-commits mailing list