Skip to content

Fix testing the right targets on CI#461

Merged
abrown merged 1 commit intoWebAssembly:mainfrom
alexcrichton:fix-tests
Jul 31, 2024
Merged

Fix testing the right targets on CI#461
abrown merged 1 commit intoWebAssembly:mainfrom
alexcrichton:fix-tests

Conversation

@alexcrichton
Copy link
Collaborator

This commit fixes a bug from the cmake migration where tests were not actually testing the correct target. Object files were compiled with the right options but the link step was missing both --target and -pthread which caused everything to accidentally be tested as wasm32-wasi. When fixing this one test was needed to have its stderr updated because the component output of wasm32-wasip2 is slightly different. A timeout was additionally added because without -pthread at the link step some tests infinitely ran which made debugging difficult.

This commit fixes a bug from the cmake migration where tests were not
actually testing the correct target. Object files were compiled with the
right options but the link step was missing both `--target` and
`-pthread` which caused everything to accidentally be tested as
`wasm32-wasi`. When fixing this one test was needed to have its stderr
updated because the component output of `wasm32-wasip2` is slightly
different. A timeout was additionally added because without `-pthread`
at the link step some tests infinitely ran which made debugging
difficult.
@abrown abrown merged commit 0de1b48 into WebAssembly:main Jul 31, 2024
@alexcrichton alexcrichton deleted the fix-tests branch July 31, 2024 14:59
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