@no_wasm2js('TODO: sanitizers in wasm2js')
@no_fastcomp('ubsan not supported on fastcomp')
@no_asan('-fsanitize-minimal-runtime cannot be used with ASan')
def test_ubsan_minimal_too_many_errors(self):
    self.emcc_args += ['-fsanitize=undefined', '-fsanitize-minimal-runtime']
    if (self.get_setting('WASM') == 0):
        if is_optimizing(self.emcc_args):
            self.skipTest('test can only be run without optimizations on asm.js')
        self.emcc_args += ['-g']
    self.do_run(open(path_from_root('tests', 'core', 'test_ubsan_minimal_too_many_errors.c')).read(), expected_output=(('ubsan: add-overflow\n' * 20) + 'ubsan: too many errors\n'))
@no_wasm2js('TODO: sanitizers in wasm2js')
@no_fastcomp('ubsan not supported on fastcomp')
@no_asan('-fsanitize-minimal-runtime cannot be used with ASan')
def test_ubsan_minimal_too_many_errors(self):
    self.emcc_args += ['-fsanitize=undefined', '-fsanitize-minimal-runtime']
    if (self.get_setting('WASM') == 0):
        if is_optimizing(self.emcc_args):
            self.skipTest('test can only be run without optimizations on asm.js')
        self.emcc_args += ['-g']
    self.do_run(open(path_from_root('tests', 'core', 'test_ubsan_minimal_too_many_errors.c')).read(), expected_output=(('ubsan: add-overflow\n' * 20) + 'ubsan: too many errors\n'))