Skip to content

Commit 43bf0e2

Browse files
committed
Enhance Scudo test to tolerate GWP-Asan.
When LLVM was updated to a new enough release to have GWP-Asan, we started getting probabilistic test failures, as the double-free would sometimes be caught by GWP-Asan (odds are about 1/5000). We should tolerate either output.
1 parent debc627 commit 43bf0e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Sanitizers/scudo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ let allocated = UnsafeMutableRawPointer.allocate(byteCount: 128, alignment: 1)
88
allocated.deallocate()
99
allocated.deallocate()
1010

11-
// CHECK: ERROR: invalid chunk state
11+
// CHECK: {{ERROR: invalid chunk state|\*\*\* GWP-ASan detected a memory error \*\*\*}}

0 commit comments

Comments
 (0)