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

Default to single-threaded tests for WebAssembly #41

Merged

Conversation

alexcrichton
Copy link
Contributor

WebAssembly targets generally don't have support for spawning threads right now so this commit makes the library work a bit better by default on these targets. I'll note that wasm additionally doesn't have support for unwinding meaning that a failing test still aborts the whole process which also isn't great, but this can be a useful feature for projects that test both native and wasm where errors primarily come from native but CI might test wasm to ensure it still works, for example.

WebAssembly targets generally don't have support for spawning threads
right now so this commit makes the library work a bit better by default
on these targets. I'll note that wasm additionally doesn't have support
for unwinding meaning that a failing test still aborts the whole process
which also isn't great, but this can be a useful feature for projects
that test both native and wasm where errors primarily come from native
but CI might test wasm to ensure it still works, for example.
Copy link
Owner

@LukasKalbertodt LukasKalbertodt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, thank you!

@LukasKalbertodt LukasKalbertodt merged commit cc56e00 into LukasKalbertodt:master May 10, 2024
2 checks passed
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