Skip to content

test-macros: Handle dead code warnings#9492

Merged
saulecabrera merged 1 commit intobytecodealliance:mainfrom
saulecabrera:test-macros-handle-dead-code-warnings
Oct 22, 2024
Merged

test-macros: Handle dead code warnings#9492
saulecabrera merged 1 commit intobytecodealliance:mainfrom
saulecabrera:test-macros-handle-dead-code-warnings

Conversation

@saulecabrera
Copy link
Copy Markdown
Member

This commit handles dead code warnings produced by the compiler when the macro is invoked as:

#[wasmtime_test(strategies(not(Cranelift))]

Which occur because Winch currently only offers support for x86_64.

The motivation behind this change comes from
#9490, which is where the warnings surfaced.

This commit handles dead code warnings produced by the compiler when the
macro is invoked as:

    #[wasmtime_test(strategies(not(Cranelift))]

Which occur because Winch currently only offers support for x86_64.

The motivation behind this change comes from
bytecodealliance#9490, which is where
the warnings surfaced.
@saulecabrera saulecabrera requested a review from a team as a code owner October 21, 2024 18:27
@saulecabrera saulecabrera requested review from alexcrichton and elliottt and removed request for a team October 21, 2024 18:27
@saulecabrera saulecabrera added this pull request to the merge queue Oct 22, 2024
Merged via the queue into bytecodealliance:main with commit 1887ae0 Oct 22, 2024
@saulecabrera saulecabrera deleted the test-macros-handle-dead-code-warnings branch October 22, 2024 17:21
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Oct 22, 2024
After poking around with APIs a bit this is a minor evolution of bytecodealliance#9492
to always run Winch tests, even if they're expected to fail, but failure
is allowed if they're expected to fail. This is done via the
`Termination` trait and inspecting the `ExitCode` that it returns to
assert that it has the relevant exit code.
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