diff options
author | Sam Clegg <sbc@chromium.org> | 2020-01-09 08:06:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 08:06:35 -0800 |
commit | 5b2f61e8908ae80e5ccfa0cbbd8c856aa16ab5fd (patch) | |
tree | 3e7e25264e6a73870a1d42a41ff389b856d03bef /test/spectest-interp-invalid-literal.txt | |
parent | d7f7fd7baa9b259e034667148ea771460ce4e83a (diff) | |
download | wabt-5b2f61e8908ae80e5ccfa0cbbd8c856aa16ab5fd.tar.gz wabt-5b2f61e8908ae80e5ccfa0cbbd8c856aa16ab5fd.tar.bz2 wabt-5b2f61e8908ae80e5ccfa0cbbd8c856aa16ab5fd.zip |
Report invalid literals when parsing spectest JSON files (#1288)
These were being silently ignored previously.
Diffstat (limited to 'test/spectest-interp-invalid-literal.txt')
-rw-r--r-- | test/spectest-interp-invalid-literal.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/spectest-interp-invalid-literal.txt b/test/spectest-interp-invalid-literal.txt new file mode 100644 index 00000000..bcb4c892 --- /dev/null +++ b/test/spectest-interp-invalid-literal.txt @@ -0,0 +1,17 @@ +;;; RUN: %(spectest-interp)s %(in_file)s +;;; ERROR: 1 +{ + "source_filename": "test.wast", + "commands": [ + {"type": "module", "line": 1, "filename": "test.0.wasm"}, + { + "type": "assert_return", + "line": 3, + "action": {"type": "invoke", "field": "f", "args": []}, + "expected": [{"type": "i32", "value": "xx"}] + } + ] +} +(;; STDERR ;;; +out/test/spectest-interp-invalid-literal.txt:11:50: invalid i32 literal +;;; STDERR ;;) |