MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test_missing_wasm

Method test_missing_wasm

test/test_other.py:8683–8688  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

8681 'O2': (['-O2'],),
8682 })
8683 def test_missing_wasm(self, args):
8684 # Check that in debug builds we show a good error message if there is no wasm support
8685 create_file('pre.js', 'WebAssembly = undefined;\n')
8686 self.run_process([EMCC, test_file('hello_world.c'), '--pre-js', 'pre.js'] + args)
8687 out = self.run_js('a.out.js', assert_returncode=NON_ZERO)
8688 self.assertContainedIf('no native wasm support detected', out, not args)
8689
8690 def test_exceptions_c_linker(self):
8691 # Test that we don't try to create __cxa_find_matching_catch_xx function automatically

Callers

nothing calls this directly

Calls 5

create_fileFunction · 0.90
test_fileFunction · 0.90
run_processMethod · 0.80
run_jsMethod · 0.80
assertContainedIfMethod · 0.80

Tested by

no test coverage detected