(self, extra_args)
| 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 |
nothing calls this directly
no test coverage detected