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 f4f571e
Show file tree
Hide file tree
Showing 3 changed files with 6 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 6"
)

add_test(
Expand Down
6 changes: 5 additions & 1 deletion test/smoketests/spectests/broken/broken.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
{"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": 25, "filename": "single_func.wasm"},
{"type": "assert_return", "line": 35, "action": {"type": "invoke", "field": "foo", "args": [{"type": "invalid_type", "value": "0"}]}, "expected": []},
{"type": "assert_return", "line": 45, "action": {"type": "invoke", "field": "foo", "args": []}, "expected": [{"type": "invalid_type", "value": "0"}]}]
}
Binary file added test/smoketests/spectests/broken/single_func.wasm
Binary file not shown.

0 comments on commit f4f571e

Please sign in to comment.