[compiler-rt] d46ed73 - [compiler-rt][UBSan] Add env prefixes in test

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 2 01:23:27 PST 2025


Author: Aiden Grossman
Date: 2025-11-02T09:23:21Z
New Revision: d46ed73de883ea6013e0727b4b91ee06dac14b4f

URL: https://github.com/llvm/llvm-project/commit/d46ed73de883ea6013e0727b4b91ee06dac14b4f
DIFF: https://github.com/llvm/llvm-project/commit/d46ed73de883ea6013e0727b4b91ee06dac14b4f.diff

LOG: [compiler-rt][UBSan] Add env prefixes in test

This was another test that was not using an env prefix when setting an
environment variable. This was caught by the Sparc Solaris builder as it
is disabled by default on Linux.

https://lab.llvm.org/buildbot/#/builders/13/builds/10414

Added: 
    

Modified: 
    compiler-rt/test/ubsan/TestCases/Misc/Posix/print_stack_trace.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/ubsan/TestCases/Misc/Posix/print_stack_trace.cpp b/compiler-rt/test/ubsan/TestCases/Misc/Posix/print_stack_trace.cpp
index 93c6bd66e127c..2eac710d98085 100644
--- a/compiler-rt/test/ubsan/TestCases/Misc/Posix/print_stack_trace.cpp
+++ b/compiler-rt/test/ubsan/TestCases/Misc/Posix/print_stack_trace.cpp
@@ -1,5 +1,5 @@
-// RUN: %clangxx -fsanitize=undefined -O0 %s -o %t && UBSAN_OPTIONS=stack_trace_format=DEFAULT:fast_unwind_on_fatal=1 %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx -fsanitize=undefined -O0 %s -o %t && UBSAN_OPTIONS=stack_trace_format=DEFAULT:fast_unwind_on_fatal=0 %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx -fsanitize=undefined -O0 %s -o %t && env UBSAN_OPTIONS=stack_trace_format=DEFAULT:fast_unwind_on_fatal=1 %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx -fsanitize=undefined -O0 %s -o %t && env UBSAN_OPTIONS=stack_trace_format=DEFAULT:fast_unwind_on_fatal=0 %run %t 2>&1 | FileCheck %s
 
 // This test is temporarily disabled due to broken unwinding on ARM.
 // UNSUPPORTED: target={{.*-linux-.*}}


        


More information about the llvm-commits mailing list