@no_asan('call stack exceeded on some versions of node')
@is_slow_test
def test_fuzz(self):
    self.emcc_args += [('-I' + path_from_root('tests', 'fuzz', 'include')), '-w']
    skip_lto_tests = ['19.c', '18.cpp', '23.cpp']

    def run_all(x):
        print(x)
        for name in sorted((glob.glob(path_from_root('tests', 'fuzz', '*.c')) + glob.glob(path_from_root('tests', 'fuzz', '*.cpp')))):
            if ('newfail' in name):
                continue
            if os.path.basename(name).startswith('temp_fuzzcode'):
                continue
            if ((x == 'lto') and (self.run_name in ['default', 'asm2f']) and (os.path.basename(name) in ['8.c'])):
                continue
            if ((x == 'lto') and (self.run_name == 'default') and (os.path.basename(name) in skip_lto_tests)):
                continue
            if ((x == 'lto') and (os.path.basename(name) in ['21.c'])):
                continue
            print(name)
            if name.endswith('.cpp'):
                self.emcc_args.append('-std=c++03')
            self.do_run(open(path_from_root('tests', 'fuzz', name)).read(), open(path_from_root('tests', 'fuzz', (name + '.txt'))).read(), force_c=name.endswith('.c'), assert_returncode=None)
            if name.endswith('.cpp'):
                self.emcc_args.remove('-std=c++03')
    run_all('normal')
    self.emcc_args += ['--llvm-lto', '1']
    run_all('lto')
@no_asan('call stack exceeded on some versions of node')
@is_slow_test
def test_fuzz(self):
    self.emcc_args += [('-I' + path_from_root('tests', 'fuzz', 'include')), '-w']
    skip_lto_tests = ['19.c', '18.cpp', '23.cpp']

    def run_all(x):
        print(x)
        for name in sorted((glob.glob(path_from_root('tests', 'fuzz', '*.c')) + glob.glob(path_from_root('tests', 'fuzz', '*.cpp')))):
            if ('newfail' in name):
                continue
            if os.path.basename(name).startswith('temp_fuzzcode'):
                continue
            if ((x == 'lto') and (self.run_name in ['default', 'asm2f']) and (os.path.basename(name) in ['8.c'])):
                continue
            if ((x == 'lto') and (self.run_name == 'default') and (os.path.basename(name) in skip_lto_tests)):
                continue
            if ((x == 'lto') and (os.path.basename(name) in ['21.c'])):
                continue
            print(name)
            if name.endswith('.cpp'):
                self.emcc_args.append('-std=c++03')
            self.do_run(open(path_from_root('tests', 'fuzz', name)).read(), open(path_from_root('tests', 'fuzz', (name + '.txt'))).read(), force_c=name.endswith('.c'), assert_returncode=None)
            if name.endswith('.cpp'):
                self.emcc_args.remove('-std=c++03')
    run_all('normal')
    self.emcc_args += ['--llvm-lto', '1']
    run_all('lto')