diff options
Diffstat (limited to 'scripts/test/s2wasm.py')
-rwxr-xr-x | scripts/test/s2wasm.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/test/s2wasm.py b/scripts/test/s2wasm.py index a3345f87b..0e0bec621 100755 --- a/scripts/test/s2wasm.py +++ b/scripts/test/s2wasm.py @@ -17,8 +17,8 @@ import os from support import run_command from shared import ( - fail, fail_with_error, fail_if_not_contained, - options, S2WASM, WASM_SHELL + fail_with_error, fail_if_not_contained, + options, S2WASM, WASM_SHELL, fail_if_not_identical_to_file ) @@ -64,9 +64,7 @@ def test_s2wasm(): if not expected_exists: print actual fail_with_error('output ' + expected_file + ' does not exist') - expected = open(expected_file, 'rb').read() - if actual != expected: - fail(actual, expected) + fail_if_not_identical_to_file(actual, expected_file) # verify with options cmd = S2WASM + [full, '--global-base=1024'] + stack_alloc |