Skip to content

Commit 281703b

Browse files
authored
Skip test_bigswitch when not optimizing. NFC (#19664)
With the recent node update from v15 to v16 the unoptimized version now uses enough memory to get OOM'd during CI, just like test_biggerswitch below.
1 parent 85629e0 commit 281703b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2499,6 +2499,8 @@ def test_llvmswitch(self):
24992499

25002500
@no_wasm2js('massive switches can break js engines')
25012501
def test_bigswitch(self):
2502+
if not self.is_optimizing():
2503+
self.skipTest('nodejs takes ~4GB to compile this if the wasm is not optimized, which OOMs')
25022504
self.set_setting('USE_SDL')
25032505
self.do_runf(test_file('bigswitch.cpp'), '''34962: GL_ARRAY_BUFFER (0x8892)
25042506
26214: what?

0 commit comments

Comments
 (0)