[PATCH] D147382: [asan][test][win] Make report_after_syminitialize test less brittle
Alvin Wong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 2 00:38:02 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe70ec2e50f41: [asan][test][win] Make report_after_syminitialize test less brittle (authored by alvinhochun).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147382/new/
https://reviews.llvm.org/D147382
Files:
compiler-rt/test/asan/TestCases/Windows/report_after_syminitialize.cpp
Index: compiler-rt/test/asan/TestCases/Windows/report_after_syminitialize.cpp
===================================================================
--- compiler-rt/test/asan/TestCases/Windows/report_after_syminitialize.cpp
+++ compiler-rt/test/asan/TestCases/Windows/report_after_syminitialize.cpp
@@ -3,12 +3,7 @@
// not support it, so we need to specify extra flags to get the compiler to
// generate PDB debug info.
-// The first build command is intended for MSVC target, which fails on MinGW.
-// The second build command contains the flags required to get PDB debug info
-// on a MinGW build, which fails on MSVC.
-
-// RUN: %clangxx_asan -O0 %s -o %t \
-// RUN: || %clangxx_asan -gcodeview -gcolumn-info -Wl,--pdb= -O0 %s -o %t -ldbghelp
+// RUN: %clangxx_asan %if target={{.*-windows-gnu}} %{ -gcodeview -gcolumn-info -Wl,--pdb= -ldbghelp %} -O0 %s -o %t
// RUN: %env_asan_opts=external_symbolizer_path=non-existent\\\\asdf not %run %t 2>&1 | FileCheck %s
#include <windows.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147382.510312.patch
Type: text/x-patch
Size: 991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230402/e6587516/attachment.bin>
More information about the llvm-commits
mailing list