Skip to content

Add tests for external non-main entrypoints - #863

Merged
alexcrichton merged 1 commit into
WebAssembly:mainfrom
alexcrichton:test-non-main-entrypoints
Aug 10, 2026
Merged

Add tests for external non-main entrypoints#863
alexcrichton merged 1 commit into
WebAssembly:mainfrom
alexcrichton:test-non-main-entrypoints

Conversation

@alexcrichton

Copy link
Copy Markdown
Collaborator

This adds a bit of test building logic to be able to write tests for non-main entrypoints. This came up as part of rust-lang/rust#160828 where a new test passed when invoked via main but failed when invoked via a non-main entrypoint. The actual test in question is already fixed in main for this library so the change here is effectively just adding a regression test plus some new test infrastructure.

@alexcrichton
alexcrichton requested a review from dicej August 10, 2026 16:47
This adds a bit of test building logic to be able to write tests for
non-main entrypoints. This came up as part of rust-lang/rust#160828
where a new test passed when invoked via `main` but failed when invoked
via a non-`main` entrypoint. The actual test in question is already
fixed in `main` for this library so the change here is effectively just
adding a regression test plus some new test infrastructure.
@alexcrichton
alexcrichton enabled auto-merge (squash) August 10, 2026 17:12
@alexcrichton
alexcrichton merged commit 44113af into WebAssembly:main Aug 10, 2026
36 checks passed
@alexcrichton
alexcrichton deleted the test-non-main-entrypoints branch August 10, 2026 17:48
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