Skip to content

Commit ab9aa4c

Browse files
authored
Parameterize test_webgpu_compiletest. NFC (#21402)
1 parent 6b93444 commit ab9aa4c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/test_other.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11877,9 +11877,14 @@ def test(args, expect_fail):
1187711877
# unless we explicitly disable polyfills
1187811878
test(['-sLEGACY_VM_SUPPORT', '-sNO_POLYFILL'], expect_fail=True)
1187911879

11880-
def test_webgpu_compiletest(self):
11881-
for args in [[], ['-sASSERTIONS'], ['-sASSERTIONS', '--closure=1'], ['-sMAIN_MODULE=1']]:
11882-
self.run_process([EMXX, test_file('webgpu_jsvalstore.cpp'), '-sUSE_WEBGPU', '-sASYNCIFY'] + args)
11880+
@parameterized({
11881+
'': ([],),
11882+
'assertions': (['-sASSERTIONS'],),
11883+
'closure': (['-sASSERTIONS', '--closure=1'],),
11884+
'dylink': (['-sMAIN_MODULE'],),
11885+
})
11886+
def test_webgpu_compiletest(self, args):
11887+
self.run_process([EMXX, test_file('webgpu_jsvalstore.cpp'), '-sUSE_WEBGPU', '-sASYNCIFY'] + args)
1188311888

1188411889
def test_signature_mismatch(self):
1188511890
create_file('a.c', 'void foo(); int main() { foo(); return 0; }')

0 commit comments

Comments
 (0)