[libcxx-commits] [libcxx] [libc++] disable hwasan for the 'set_new_handler' test (PR #217086)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 18 10:25:39 PDT 2026


https://github.com/siradam7th created https://github.com/llvm/llvm-project/pull/217086

Disable Hardware-assisted AddressSanitizer for the `set_new_handler` test to prevent test failure when it is enabled.

>From a4c7318b7b6eb483e5af5ef2f4a122945fb1883e Mon Sep 17 00:00:00 2001
From: siradam7th <oss at afterback.gq>
Date: Tue, 18 Aug 2026 18:17:02 +0100
Subject: [PATCH] [libc++] disable 'set_new_handler' hwasan

---
 .../alloc.errors/set.new.handler/set_new_handler.pass.cpp       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/test/std/language.support/support.dynamic/alloc.errors/set.new.handler/set_new_handler.pass.cpp b/libcxx/test/std/language.support/support.dynamic/alloc.errors/set.new.handler/set_new_handler.pass.cpp
index 9dbd4e664457a..fc21bbfd37158 100644
--- a/libcxx/test/std/language.support/support.dynamic/alloc.errors/set.new.handler/set_new_handler.pass.cpp
+++ b/libcxx/test/std/language.support/support.dynamic/alloc.errors/set.new.handler/set_new_handler.pass.cpp
@@ -8,7 +8,7 @@
 
 // a test will allocate an impossible amount of memory on purpose
 // and it will trigger an expected failure
-// UNSUPPORTED: asan, msan, tsan
+// UNSUPPORTED: asan, msan, tsan, hwasan
 
 // test set_new_handler
 



More information about the libcxx-commits mailing list