Skip to content

./miri run --dep seems to be buffering stderr #4841

@RalfJung

Description

@RalfJung

If I add something like this at a place in Miri that gets hit during execution

eprintln!("hi!");
loop {}

and then I use ./miri run --dep, I see no output:

    Finished `test` profile [optimized + debuginfo] target(s) in 0.06s
     Running tests/ui.rs (target/debug/deps/ui-1730b7ed90e55bbf)

Is it possible that ui_test is capturing the entire output of the program, and only then dumping it to stderr all at once at the end? That would be not great for debugging...

Cc @oli-obk

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