Skip to content

Commit

Permalink
Passed the unlinkable test
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Nov 15, 2024
1 parent 3bcecdf commit db1e931
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/test_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,14 @@ def host(runtime: pywasm.core.Runtime) -> typing.Dict[str, typing.Dict[str, pywa
else:
assert 0
case 'assert_unlinkable':
assert 1
try:
lmodule = runtime.instance_from_file(f'res/spectest/{elem['filename']}')
except:
runtime.machine.stack.frame.clear()
runtime.machine.stack.label.clear()
runtime.machine.stack.value.clear()
else:
assert 0
case 'module':
lmodule = runtime.instance_from_file(f'res/spectest/{elem['filename']}')
if 'name' in elem:
Expand Down

0 comments on commit db1e931

Please sign in to comment.