[compiler-rt] [TySan] Added a 'print_stacktrace' flag for more detailed errors (PR #121756)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 04:18:54 PST 2025


================
@@ -0,0 +1,22 @@
+// RUN: %clang_tysan -O0 %s -o %t && %run %t >%t.out 2>&1
+// RUN: FileCheck --check-prefixes=CHECK,CHECK-SHORT %s < %t.out
+
+// RUN: env TYSAN_OPTIONS=print_stacktrace=1 %run %t >%t.out 2>&1
----------------
goussepi wrote:

I think eventually we will need to introduce a %env_tysan_opts lit substitutions to protect from environment variables affecting test results, but can be done in a separate patch.

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


More information about the llvm-commits mailing list