Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions check.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ def check_expected(actual, expected):
for module, asserts in support.split_wast(wast):
print(' testing split module', split_num)
split_num += 1
support.write_wast('split.wast', module, asserts)
support.write_wast('split.wast', module)
run_opt_test('split.wast') # also that our optimizer doesn't break on it
result_wast_file = shared.binary_format_check('split.wast', verify_final_result=False, original_wast=wast)
result_wast_file = shared.binary_format_check('split.wast', verify_final_result=False)
with open(result_wast_file) as f:
result_wast = f.read()
# add the asserts, and verify that the test still passes
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def get_tests(test_dir, extensions=[], recursive=False):
# check utilities

def binary_format_check(wast, verify_final_result=True, wasm_as_args=['-g'],
binary_suffix='.fromBinary', original_wast=None):
binary_suffix='.fromBinary'):
# checks we can convert the wast to binary and back

print(' (binary format check)')
Expand Down