Skip to content

compiletest --nocapture still delays prints #128565

Open
@lolbinarycat

Description

@lolbinarycat

add the following snippet to the top of any run-make test's main function:

   #![allow(unreachable_code)]
    println!("infinite loop");
    loop {}

then run COMPILETEST_FORCE_STAGE0=1 ./x test --stage 0 tests/run-make/TEST_NAME/ -- --nocapture

this should print "infinite loop" and then hang, but it does not print anything.

running the same piece of code on the playground works properly.

flushing stdout doesn't help either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-compiletestArea: The compiletest test runnerA-run-makeArea: port run-make Makefiles to rmake.rsC-bugCategory: This is a bug.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-needs-investigationCall for partcipation: This issues needs some investigation to determine current statusT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions