Skip to content

new wasm tests fail

When running the tests with wabt 1.0.6-1 on Arch Linux I receive the following error when running the wasm tests:

differences = []

    @skip_unless_tools_exist('wasm2wat')
    def test_diff(differences):
        expected_diff = get_data('wasm_expected_diff')
        print(differences)
>       actual_diff = differences[0].unified_diff
E       IndexError: list index out of range

comparators/test_wasm.py:54: IndexError

I suspect that diffoscope runs wasm2wat on hello2.wasm which returns the following error:

wasm2wat --no-check data/hello2.wasm

hello2.wasm is also recognised as a text file:

[jelle@natrium][~/projects/diffoscope]%file tests/data/hello1.wasm 
tests/data/hello1.wasm: WebAssembly (wasm) binary module version 0x1 (MVP)
Edited by Jelle van der Waa
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information