diff --git a/test/test_other.py b/test/test_other.py index 59d3673ef8711..fc99e5c69283c 100644 --- a/test/test_other.py +++ b/test/test_other.py @@ -11877,9 +11877,14 @@ def test(args, expect_fail): # unless we explicitly disable polyfills test(['-sLEGACY_VM_SUPPORT', '-sNO_POLYFILL'], expect_fail=True) - def test_webgpu_compiletest(self): - for args in [[], ['-sASSERTIONS'], ['-sASSERTIONS', '--closure=1'], ['-sMAIN_MODULE=1']]: - self.run_process([EMXX, test_file('webgpu_jsvalstore.cpp'), '-sUSE_WEBGPU', '-sASYNCIFY'] + args) + @parameterized({ + '': ([],), + 'assertions': (['-sASSERTIONS'],), + 'closure': (['-sASSERTIONS', '--closure=1'],), + 'dylink': (['-sMAIN_MODULE'],), + }) + def test_webgpu_compiletest(self, args): + self.run_process([EMXX, test_file('webgpu_jsvalstore.cpp'), '-sUSE_WEBGPU', '-sASYNCIFY'] + args) def test_signature_mismatch(self): create_file('a.c', 'void foo(); int main() { foo(); return 0; }')