(self)
| 2299 | @no_wasm2js('massive switches can break js engines') |
| 2300 | @is_slow_test |
| 2301 | def test_biggerswitch(self): |
| 2302 | if self.is_optimizing(): |
| 2303 | self.skipTest('https://github.com/emscripten-core/emscripten/issues/22179') |
| 2304 | if not self.is_optimizing(): |
| 2305 | self.skipTest('nodejs takes >6GB to compile this if the wasm is not optimized, which OOMs, see https://github.com/emscripten-core/emscripten/issues/7928#issuecomment-458308453') |
| 2306 | num_cases = 20000 |
| 2307 | switch_case = self.run_process([PYTHON, test_file('gen_large_switchcase.py'), str(num_cases)], stdout=PIPE, stderr=PIPE).stdout |
| 2308 | self.do_run(switch_case, '''58996: 589965899658996 |
| 2309 | 59297: 592975929759297 |
| 2310 | 59598: default |
| 2311 | 59899: 598995989959899 |
| 2312 | Success!''') |
| 2313 | |
| 2314 | @no_ubsan('local count too large for VMs') |
| 2315 | def test_indirectbr(self): |
nothing calls this directly
no test coverage detected