-
Notifications
You must be signed in to change notification settings - Fork 38
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
test: Add call depth unit tests #757
Conversation
Codecov Report
@@ Coverage Diff @@
## master #757 +/- ##
========================================
Coverage 99.25% 99.26%
========================================
Files 76 77 +1
Lines 11567 11718 +151
========================================
+ Hits 11481 11632 +151
Misses 86 86
Flags with carried forward coverage won't be shown. Click here to find out more.
|
92bb9af
to
d42c6b4
Compare
They are all "replaced" in the current version. |
Add new file to CI wat2wasm4tests check. |
Ah nevermind, we run it for all test files already. |
The new tests look ok to me. I didn't check very thoroughly if they cover everything of the old tests. |
|
||
/// Infinite recursion | ||
|
||
TEST(execute_call_depth, execute_internal_function_infinite_recursion) |
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.
Hmm, can you add a case similar to this where recursion starts at the start function? Generally also cases where start function is present and calls other things.
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.
Added.
These test inspect the behavior of call depth limiting.
This reworks tests which have host function recursion and moves them to the execute_call_depth suite.
Depends on #756.
These test inspect the behavior of call depth limiting.
This duplicates a number of checks from "execute_call". Some tests from there may be removed if desired.
This implements test cases from https://notes.ethereum.org/@chfast/fizzy-call-depth.