[compiler-rt] [rtsan] Only print out unique stack traces (PR #110028)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 17:09:12 PDT 2024


================
@@ -0,0 +1,37 @@
+// RUN: %clangxx -fsanitize=realtime %s -o %t
+// RUN: env RTSAN_OPTIONS="halt_on_error=false,print_stats_on_exit=true" %run %t 2>&1 | FileCheck %s
+// RUN: env RTSAN_OPTIONS="halt_on_error=false" %run %t 2>&1 | grep "==ERROR: RealtimeSanitizer:" | wc -l | awk '{exit $1 != 4}'
----------------
ilovepi wrote:

> how would awk work? it depends on the host system?

Yeah. we also don't require it in our docs, so 🤷  IDK what level of support we expect for that. Likely, many tests w/ that pattern are `REQUIRES: shell` or `UNSUPPORTED: windows`. We list the utilities you're expected to have for testing/building here: https://llvm.org/docs/GettingStarted.html#software

https://github.com/llvm/llvm-project/pull/110028


More information about the llvm-commits mailing list