Skip to content

Commit

Permalink
test: smoke test for invalid value type
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Jul 31, 2020
1 parent 284efe9 commit ff61974
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/smoketests/spectests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ add_test(
set_tests_properties(
fizzy/smoketests/spectests/broken
PROPERTIES
PASS_REGULAR_EXPRESSION "PASSED 0, FAILED 2, SKIPPED 4"
PASS_REGULAR_EXPRESSION "PASSED 1, FAILED 2, SKIPPED 5"
)

add_test(
Expand Down
5 changes: 4 additions & 1 deletion test/smoketests/spectests/broken/broken.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
{"type": "module", "line": 5, "filename": "unparsable.wasm"},
{"type": "assert_return", "line": 10, "action": {"type": "get", "field": "tmp"}, "expected": []},
{"type": "assert_return", "line": 15, "action": {"type": "invalid_action_type"}, "expected": []},
{"type": "assert_trap", "line": 20, "action": {"type": "invalid_action_type"}, "expected": []}]}
{"type": "assert_trap", "line": 20, "action": {"type": "invalid_action_type"}, "expected": []},
{"type": "module", "line": 30, "filename": "single_func.wasm"},
{"type": "assert_return", "line": 40, "action": {"type": "invoke", "field": "foo", "args": [{"type": "invalid_type", "value": "0"}]}, "expected": []}]
}
Binary file added test/smoketests/spectests/broken/single_func.wasm
Binary file not shown.

0 comments on commit ff61974

Please sign in to comment.