Skip to content
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

Add thread spawn test #11

Merged
merged 1 commit into from
Dec 21, 2022
Merged

Conversation

loganek
Copy link
Collaborator

@loganek loganek commented Nov 30, 2022

This is one of the tests I'm using for testing WAMR implementation; I thought it might be beneficial to others to push the test here as it's almost libc agnostic (used libc here only for assert and int64_t).

I've implemented that in C as I don't think pure WAT implementation brings a lot more value here (although if that's what's preferred, I don't mind changing that). If that's merged, I'll also integrate the repository with wasi-testsuite so the test (and any other tests added to the repo) can be executed with other wasi tests.

The test here is rather simple but does a few checks; I'm open for suggestions so we can either extend this test or add few more tests to cover more functionality.

@loganek loganek force-pushed the loganek/thread-spawn-test branch from 1f4952b to a0421f8 Compare November 30, 2022 23:18
@sbc100
Copy link
Member

sbc100 commented Nov 30, 2022

Nice! Its great to see and end-to-end example like this. I will use this on the emscripten side to make sure we keep our API in sync.

@loganek
Copy link
Collaborator Author

loganek commented Dec 21, 2022

I'm merging this PR as there's no objection; feel free to open an issue if you have any comments regarding the test.

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.

2 participants