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

Method test_bigswitch

test/test_core.py:2289–2297  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2287
2288 @no_wasm2js('massive switches can break js engines')
2289 def test_bigswitch(self):
2290 if not self.is_optimizing():
2291 self.skipTest('nodejs takes ~4GB to compile this if the wasm is not optimized, which OOMs')
2292 self.set_setting('USE_SDL')
2293 self.do_runf('core/test_bigswitch.c', '''34962: GL_ARRAY_BUFFER (0x8892)
229426214: what?
229535040: GL_STREAM_DRAW (0x88E0)
22963060: what?
2297''', args=['34962', '26214', '35040', str(0xbf4)])
2298
2299 @no_wasm2js('massive switches can break js engines')
2300 @is_slow_test

Callers

nothing calls this directly

Calls 3

is_optimizingMethod · 0.95
set_settingMethod · 0.80
do_runfMethod · 0.80

Tested by

no test coverage detected