Skip to content

Commit 961c40e

Browse files
authored
Fix test_ubsan_full_static_cast after recent llvm change. NFC (#23811)
See llvm/llvm-project#121115 Basically `-fsanitizer=undefined` no longer includes `-fsanitizer=vptr`
1 parent d4748af commit 961c40e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

test/test_core.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8741,15 +8741,11 @@ def test_ubsan_full_null_ref(self, args):
87418741
".cpp:5:14: runtime error: reference binding to null pointer of type 'int'",
87428742
])
87438743

8744-
@parameterized({
8745-
'fsanitize_undefined': (['-fsanitize=undefined'],),
8746-
'fsanitize_vptr': (['-fsanitize=vptr'],),
8747-
})
87488744
@no_wasm2js('TODO: sanitizers in wasm2js')
8749-
def test_ubsan_full_static_cast(self, args):
8750-
self.emcc_args += args
8745+
def test_sanitize_vptr(self):
87518746
self.do_runf(
8752-
'core/test_ubsan_full_static_cast.cpp',
8747+
'core/test_sanitize_vptr.cpp',
8748+
emcc_args=['-fsanitize=vptr'],
87538749
assert_all=True,
87548750
expected_output=[
87558751
".cpp:18:10: runtime error: downcast of address",

0 commit comments

Comments
 (0)