diff options
author | Ben Smith <binjimin@gmail.com> | 2018-10-18 14:47:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 14:47:40 -0700 |
commit | 9b66cdc5a92cc11c321b0068a90f6db8c24e07ff (patch) | |
tree | 6f6cfc9c7c2258da583f9c41eb0d880ab30ea308 /test/spec/elem.txt | |
parent | 4e226c6a5491f15593f57aaddb12efe1ee25efb1 (diff) | |
download | wabt-9b66cdc5a92cc11c321b0068a90f6db8c24e07ff.tar.gz wabt-9b66cdc5a92cc11c321b0068a90f6db8c24e07ff.tar.bz2 wabt-9b66cdc5a92cc11c321b0068a90f6db8c24e07ff.zip |
Add test for disabled opcodes in binary reader (#934)
It's easy to forget to add a check for unexpected opcodes, and it's
tedious to have to write additional tests in `test/binary/*`.
This way we can test all potentially disabled instructions at once.
Diffstat (limited to 'test/spec/elem.txt')
-rw-r--r-- | test/spec/elem.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec/elem.txt b/test/spec/elem.txt index 5e6b15a6..4f9f5d4f 100644 --- a/test/spec/elem.txt +++ b/test/spec/elem.txt @@ -44,9 +44,9 @@ out/test/spec/elem.wast:258: assert_invalid passed: out/test/spec/elem.wast:266: assert_invalid passed: 0000015: error: expected END opcode after initializer expression out/test/spec/elem.wast:274: assert_invalid passed: - 0000013: error: unexpected opcode in initializer expression: 1 (0x1) + 0000013: error: unexpected opcode in initializer expression: 0x1 out/test/spec/elem.wast:282: assert_invalid passed: - 0000013: error: unexpected opcode in initializer expression: 1 (0x1) + 0000013: error: unexpected opcode in initializer expression: 0x1 out/test/spec/elem.wast:290: assert_invalid passed: 0000015: error: expected END opcode after initializer expression 31/31 tests passed. |