[compiler-rt] 9b8a043 - [test] Don't rely on default of detect_stack_use_after_return

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 23:28:38 PDT 2022


Author: Vitaly Buka
Date: 2022-04-22T23:28:27-07:00
New Revision: 9b8a04313f0ec9b262c4c3c5182dc5566f53fe67

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

LOG: [test] Don't rely on default of detect_stack_use_after_return

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/heavy_uar_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/heavy_uar_test.cpp b/compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
index 571b25966ea9f..68eab14a916ae 100644
--- a/compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
+++ b/compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
@@ -1,7 +1,5 @@
-// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
 // RUN: %clangxx_asan -O0 %s -o %t -fsanitize-address-use-after-return=always && not %run %t 2>&1 | FileCheck %s
 // RUN: %clangxx_asan -O2 %s -o %t -fsanitize-address-use-after-return=always && not %run %t 2>&1 | FileCheck %s
 // XFAIL: windows-msvc


        


More information about the llvm-commits mailing list