[compiler-rt] 84144f4 - [asan][test][win] Fix demangled_names test on MSVC target

Alvin Wong via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 21 06:49:57 PDT 2023


Author: Alvin Wong
Date: 2023-04-21T21:49:05+08:00
New Revision: 84144f488a581e8cdfe33bd439b29498173c42ce

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

LOG: [asan][test][win] Fix demangled_names test on MSVC target

Fix error with b5e3d131f9ed6687cacffb67de8f54214dd8d2b3 (D147444).

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/Windows/demangled_names.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/Windows/demangled_names.cpp b/compiler-rt/test/asan/TestCases/Windows/demangled_names.cpp
index cc1f146b7306..a7b3e68f2c94 100644
--- a/compiler-rt/test/asan/TestCases/Windows/demangled_names.cpp
+++ b/compiler-rt/test/asan/TestCases/Windows/demangled_names.cpp
@@ -1,5 +1,5 @@
 // RUN: %clang_cl_asan %Od %s %Fe%t
-// RUN: not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,%if clang-cl %{MSVC%} %else %{MINGW%}
+// RUN: not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,%if target={{.*-windows-msvc.*}} %{MSVC%} %else %{MINGW%}
 //
 // This test makes sure ASan symbolizes stack traces the way they are typically
 // symbolized on Windows.


        


More information about the llvm-commits mailing list