rust-osdev / bootloader

An experimental pure-Rust x86 bootloader
Apache License 2.0
1.39k stars 212 forks source link

Terminal blocked after cargo test #338

Closed asensio-project closed 1 year ago

asensio-project commented 1 year ago

Hello,

After I execute cargo test the STDOUT of my terminal blocks, so I cannot see what I am writing. This happens after #333. I think that it's an unclosed pipe in the run_qemu() function, but I don't know anything more.

I am working for fixing it. And I will publish a PR. But if someone knows something...

Thanks!

phil-opp commented 1 year ago

You mean while cargo test runs? Or still afterwards?

In case you mean the former: that's probably because we're forwarding stdin to QEMU. Let me try to fix this.

phil-opp commented 1 year ago

I opened https://github.com/rust-osdev/bootloader/pull/339 to set stdin to null for the QEMU command. Could you try whether this fixes your issue?

asensio-project commented 1 year ago

I tried it, and it fixes it. Thanks!