Skip to content

Optionally allow writing to stdout in test runs #13374

Closed
@derekchiang

Description

@derekchiang

Currently writes to stdout are redirected when running tests. However, in some cases it could be useful to allow writing to stdout. For instance, I was writing a wrapper for a C library and got a segment fault error. This caused my test to fail abruptly, as a result of which no useful output could be seen, since stdout was captured and the test wouldn't print the logs unless it failed normally.

I was able to get around this using std::io::stdio::stdout(), but that's not ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions