@no_asan('autodebug logging interferes with asan')
@no_fastcomp('autodebugging wasm is only supported in the wasm backend')
@with_env_modify({'EMCC_AUTODEBUG': '1'})
@also_with_impure_standalone_wasm
def test_autodebug_wasm(self):
    if ('-fsanitize=address' in self.emcc_args):
        self.set_setting('ASAN_SHADOW_SIZE', ((16 * 1024) * 1024))

    def check(out, err):
        for msg in ['log_execution', 'get_i32', 'set_i32', 'load_ptr', 'load_val', 'store_ptr', 'store_val']:
            self.assertIn(msg, out)
        return (out + err)
    self.do_run(open(path_from_root('tests', 'core', 'test_autodebug.c')).read(), 'success', output_nicerizer=check)
@no_asan('autodebug logging interferes with asan')
@no_fastcomp('autodebugging wasm is only supported in the wasm backend')
@with_env_modify({'EMCC_AUTODEBUG': '1'})
@also_with_impure_standalone_wasm
def test_autodebug_wasm(self):
    if ('-fsanitize=address' in self.emcc_args):
        self.set_setting('ASAN_SHADOW_SIZE', ((16 * 1024) * 1024))

    def check(out, err):
        for msg in ['log_execution', 'get_i32', 'set_i32', 'load_ptr', 'load_val', 'store_ptr', 'store_val']:
            self.assertIn(msg, out)
        return (out + err)
    self.do_run(open(path_from_root('tests', 'core', 'test_autodebug.c')).read(), 'success', output_nicerizer=check)