Skip to content

Commit

Permalink
[test] Enable minimal runtime + asan tests. NFC (#23562)
Browse files Browse the repository at this point in the history
These seems to pass just find now.
  • Loading branch information
sbc100 authored Jan 31, 2025
1 parent 1a1c303 commit 11e3111
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ jobs:
asan.test_externref_emjs_dynlink
asan.test_asyncify_longjmp
asan.test_pthread_run_on_main_thread
asan.test_minimal_runtime_global_initializer
lsan.test_dylink_dso_needed
lsan.test_stdio_locking
lsan.test_dlfcn_basic
Expand Down
8 changes: 1 addition & 7 deletions test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,6 @@ def test_exceptions_off(self):
self.do_runf('core/test_exceptions.cpp', assert_returncode=NON_ZERO)

@no_wasmfs('https://github.com/emscripten-core/emscripten/issues/16816')
@no_asan('TODO: ASan support in minimal runtime')
def test_exceptions_minimal_runtime(self):
self.maybe_closure()
self.set_setting('MINIMAL_RUNTIME')
Expand Down Expand Up @@ -5605,7 +5604,6 @@ def test_utf8_invalid(self, args):
self.do_runf('test_utf8_invalid.c', 'OK.', emcc_args=args)

# Test that invalid character in UTF8 does not cause decoding to crash.
@no_asan('TODO: ASan support in minimal runtime')
@parameterized({
'': [[]],
'textdecoder': [['-sTEXTDECODER']],
Expand Down Expand Up @@ -8621,7 +8619,6 @@ def test_no_declare_asm_module_exports(self):

# Tests that building with -sDECLARE_ASM_MODULE_EXPORTS=0 works
@no_wasmfs('https://github.com/emscripten-core/emscripten/issues/16816')
@no_asan('TODO: ASan support in minimal runtime')
def test_minimal_runtime_no_declare_asm_module_exports(self):
self.set_setting('DECLARE_ASM_MODULE_EXPORTS', 0)
self.set_setting('WASM_ASYNC_COMPILATION', 0)
Expand Down Expand Up @@ -8651,7 +8648,6 @@ def test_minimal_runtime_hello_world(self, args):
'fs': ('FORCE_FILESYSTEM',),
'nofs': ('NO_FILESYSTEM',),
})
@no_asan('TODO: ASan support in minimal runtime')
def test_minimal_runtime_hello_printf(self, extra_setting):
self.set_setting('MINIMAL_RUNTIME')
self.emcc_args += ['--pre-js', test_file('minimal_runtime_exit_handling.js')]
Expand All @@ -8664,7 +8660,7 @@ def test_minimal_runtime_hello_printf(self, extra_setting):

# Tests that -sMINIMAL_RUNTIME works well with SAFE_HEAP
@no_wasmfs('https://github.com/emscripten-core/emscripten/issues/16816')
@no_asan('TODO: ASan support in minimal runtime')
@no_asan('SAFE_HEAP cannot be used with ASan')
def test_minimal_runtime_safe_heap(self):
self.set_setting('MINIMAL_RUNTIME')
self.emcc_args += ['--pre-js', test_file('minimal_runtime_exit_handling.js')]
Expand All @@ -8678,7 +8674,6 @@ def test_minimal_runtime_safe_heap(self):

# Tests global initializer with -sMINIMAL_RUNTIME
@no_wasmfs('https://github.com/emscripten-core/emscripten/issues/16816')
@no_asan('TODO: ASan support in minimal runtime')
def test_minimal_runtime_global_initializer(self):
self.set_setting('MINIMAL_RUNTIME')
self.emcc_args += ['--pre-js', test_file('minimal_runtime_exit_handling.js')]
Expand Down Expand Up @@ -9365,7 +9360,6 @@ def test_get_exported_function(self):
self.do_core_test('test_get_exported_function.cpp')

# Tests the emscripten_get_exported_function() API.
@no_asan('TODO: ASan support in minimal runtime')
def test_minimal_runtime_get_exported_function(self):
self.set_setting('ALLOW_TABLE_GROWTH')
self.set_setting('MINIMAL_RUNTIME')
Expand Down

0 comments on commit 11e3111

Please sign in to comment.