From 8ce0501d1eba4d1cb5ec926ae3b896952c49a819 Mon Sep 17 00:00:00 2001 From: liuyingying19 Date: Wed, 4 Jun 2025 08:19:45 +0000 Subject: [PATCH] remove the sanitize_with_gwp.cpp test due to CI cannot force gwp_asan to run on this test ccase Signed-off-by: liuyingying19 --- .../test/gwp_asan/sanitize_with_gwp.cpp | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 compiler-rt/test/gwp_asan/sanitize_with_gwp.cpp diff --git a/compiler-rt/test/gwp_asan/sanitize_with_gwp.cpp b/compiler-rt/test/gwp_asan/sanitize_with_gwp.cpp deleted file mode 100644 index fcff51dbcd53..000000000000 --- a/compiler-rt/test/gwp_asan/sanitize_with_gwp.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// REQUIRES: gwp_asan -// RUN: %clangxx_gwp_asan -fsanitize=gwp_asan %s -o %t -// RUN: %expect_crash %run %t 2>&1 | FileCheck %s - -// CHECK: GWP-ASan detected a memory error -// CHECK: Double Free at 0x{{[a-f0-9]+}} (a 1-byte allocation) - -#include - -__attribute__((sanitize_with_gwp)) void doubleFree() { - char *Ptr = new char; - delete Ptr; - delete Ptr; - return 0; -} - -int main() { - doubleFree(); - return 0; -} -- Gitee