Skip to content

Commit b2cc1cf

Browse files
mstorsjogithub-actions[bot]
authored andcommitted
Automerge: [ASan] [Windows] Fix a new test in mingw mode
The new test case added in 7817197 didn't work in mingw mode; defines set through `/D` only works when using the clang-cl compiler driver, not the regular clang compiler driver. Switch this to use `-D`, which works with both plain clang and clang-cl, so we don't need to use a lit macro for expanding the right option to use.
2 parents 349bc10 + 1d48322 commit b2cc1cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/asan/TestCases/Windows/rtlsizeheap_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cl_asan %s %Fe%t
22
// RUN: %env_asan_opts=windows_hook_rtl_allocators=true %run %t 2>&1 | FileCheck %s
3-
// RUN: %clang_cl_asan %s %Fe%t /DFAIL_CHECK
3+
// RUN: %clang_cl_asan %s %Fe%t -DFAIL_CHECK
44
// RUN: %env_asan_opts=windows_hook_rtl_allocators=true not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-FAIL
55
//
66
// Verify that zero-size heap allocations report size 0 through Windows heap

0 commit comments

Comments
 (0)