-
Notifications
You must be signed in to change notification settings - Fork 39
test: Add more call tests #571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #571 +/- ##
=======================================
Coverage 98.24% 98.24%
=======================================
Files 62 62
Lines 9052 9062 +10
=======================================
+ Hits 8893 8903 +10
Misses 159 159 |
| (func $double (param i32) (result i64) | ||
| local.get 0 | ||
| i64.extend_i32_u | ||
| local.get 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the point of this test that the same local is used twice?
| EXPECT_THAT(execute(module, 3, {4}), Traps()); | ||
| } | ||
|
|
||
| TEST(execute_call, call_indirect_shared_stack_space) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be a dup of imported_functions_call_indirect ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both are simplified variants of it. They can detect an implementation defect in #572, so I keep them as they are.
test/unittests/execute_call_test.cpp
Outdated
| { | ||
| /* wat2wasm | ||
| (module | ||
| (func $double (param i32) (result i64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's hard to guess what these tests check... Is i64 result required here? If not, maybe make it i32 for simplicity and more focused test?
No description provided.