Skip to content

Add spec tests for current_memory and grow_memory #317

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

Closed
wants to merge 1 commit into from

Conversation

d1m0
Copy link

@d1m0 d1m0 commented Aug 5, 2016

A more detailed test for the various edge cases of grow memory. checks:

  • grow by 0 pages, grow starting at 0 pages
  • assert that after grow by X(={1,3}) pages, we can access exactly X new pages and more
  • assert that on failed grow there are no new pages available to access
  • assert trying to grow with more than the max defined fails.

Note that the test currently fails due to incorrect behavior of the ml proto implementation of grow_memory - on failure it returns 0 instead of -1.

Note: This seems to be a superset of tests/resizing.wast. If preferred, I can merge it in that.

Thanks!

@rossberg
Copy link
Member

rossberg commented Aug 5, 2016

Yes, please move these into resizing.wast. Also, PR #316 adds a few similar tests:

https://github.com/WebAssembly/spec/pull/316/files#diff-ebd58390f69e54e7cc06428e79f35884

Can you incorporate those as well, in case yours don't cover all of that already?

@rossberg
Copy link
Member

#316 has landed on the binary-0xc branch now. It's probably easiest to also rebase this PR on that branch.

@rossberg
Copy link
Member

Binary-0xc has been merged into master. Any interest in updating this PR?

@jfbastien
Copy link
Member

Please also make sure that you're a member of the W3C Community Group.

@rossberg rossberg force-pushed the master branch 2 times, most recently from bace049 to e7632dc Compare November 28, 2016 15:48
@rossberg
Copy link
Member

rossberg commented Dec 2, 2016

No activity on this for 4 months, closing.

@rossberg rossberg closed this Dec 2, 2016
ngzhian added a commit to ngzhian/spec that referenced this pull request Nov 4, 2021
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Oct 3, 2023
rossberg pushed a commit that referenced this pull request Jul 23, 2024
This section is about general exception-related topics, not just tags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants