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

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 16:34:43 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}'
----------------
fmayer wrote:

There has been an effort about migrating tests to the lit-internal shell (CC @ilovepi) which would not support this. So I think from that point of view four `CHECK` followed by `CHECK-NOT` would be better

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


More information about the llvm-commits mailing list