From d20f5f1ced03e67d819e2160052c247651a47e9a Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 3 Mar 2025 09:46:04 -0800 Subject: [PATCH] Fix test_ubsan_full_static_cast after recent llvm change. NFC See https://github.com/llvm/llvm-project/pull/121115 Basically `-fsanitizer=undefined` no longer includes `-fsanitizer=vptr` --- ...san_full_static_cast.cpp => test_sanitize_vptr.cpp} | 0 test/test_core.py | 10 +++------- 2 files changed, 3 insertions(+), 7 deletions(-) rename test/core/{test_ubsan_full_static_cast.cpp => test_sanitize_vptr.cpp} (100%) diff --git a/test/core/test_ubsan_full_static_cast.cpp b/test/core/test_sanitize_vptr.cpp similarity index 100% rename from test/core/test_ubsan_full_static_cast.cpp rename to test/core/test_sanitize_vptr.cpp diff --git a/test/test_core.py b/test/test_core.py index 6d24209be1727..13921519b7354 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -8741,15 +8741,11 @@ def test_ubsan_full_null_ref(self, args): ".cpp:5:14: runtime error: reference binding to null pointer of type 'int'", ]) - @parameterized({ - 'fsanitize_undefined': (['-fsanitize=undefined'],), - 'fsanitize_vptr': (['-fsanitize=vptr'],), - }) @no_wasm2js('TODO: sanitizers in wasm2js') - def test_ubsan_full_static_cast(self, args): - self.emcc_args += args + def test_sanitize_vptr(self): self.do_runf( - 'core/test_ubsan_full_static_cast.cpp', + 'core/test_sanitize_vptr.cpp', + emcc_args=['-fsanitize=vptr'], assert_all=True, expected_output=[ ".cpp:18:10: runtime error: downcast of address",