Files
swift-mirror/test/Sanitizers/scudo.swift
Evan Wilde bf4dadc0c0 Fix scudo test
Scudo crashes when it trips. Pass the `--crash` flag to `not` to handle
it properly.
2023-08-23 15:36:24 -07:00

12 lines
437 B
Swift

// RUN: %target-swiftc_driver %s -g -sanitize=scudo -o %t_scudo-binary
// RUN: not --crash %target-run %t_scudo-binary 2>&1 | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: OS=linux-gnu
// REQUIRES: scudo_runtime
let allocated = UnsafeMutableRawPointer.allocate(byteCount: 128, alignment: 1)
allocated.deallocate()
allocated.deallocate()
// CHECK: {{ERROR: invalid chunk state|\*\*\* GWP-ASan detected a memory error \*\*\*}}