Skip to content

libtest captures stdout&stderr only on first thread. #31983

@dpc

Description

@dpc

Hi,

When testing anything multithreaded, the output of non-first thread are directly printed on the console.

I wonder if libtest could maybe expose the set_panic and set_print handlers, so other spawned threads can installed it manually as a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-libtestArea: `#[test]` / the `test` libraryC-bugCategory: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions