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

Method test_demangle_stacks

test/test_core.py:7343–7358  ·  view source on GitHub ↗
(self, extra_args)

Source from the content-addressed store, hash-verified

7341 'noexcept': (['-fno-exceptions'],),
7342 })
7343 def test_demangle_stacks(self, extra_args):
7344 self.cflags += extra_args
7345 self.set_setting('ASSERTIONS')
7346 # disable aggressive inlining in binaryen
7347 self.set_setting('BINARYEN_EXTRA_PASSES', '--one-caller-inline-max-function-size=1')
7348 # ensure function names are preserved
7349 self.cflags += ['--profiling-funcs']
7350 self.do_core_test('test_demangle_stacks.cpp', assert_returncode=NON_ZERO)
7351
7352 # there should be a name section in the file
7353 with webassembly.Module('test_demangle_stacks.wasm') as m:
7354 self.assertTrue(m.has_name_section())
7355
7356 print('without assertions, the stack is not printed, but a message suggesting assertions is')
7357 self.set_setting('ASSERTIONS', 0)
7358 self.do_core_test('test_demangle_stacks_noassert.cpp', assert_returncode=NON_ZERO)
7359
7360 def test_demangle_stacks_symbol_map(self):
7361 # disable aggressive inlining in binaryen

Callers

nothing calls this directly

Calls 4

do_core_testMethod · 0.95
set_settingMethod · 0.80
has_name_sectionMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected