Skip to content

wasm test failures do not contain error messages #62556

Open
@tmandry

Description

@tmandry

When our tests fail in bors on a wasm target, there is no error message except RuntimeError: unreachable (example). There is nothing to print the panic message to the console.

I think this could be fixed by adding console_error_panic_hook as dependency somehow, but I'm not quite sure how to do this.

Here's an example project that sets up this dependency to run with a test: async-fn-size. Thanks to @Mark-Simulacrum for figuring this out!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions