rust/library/std
bors 46455dc650 Auto merge of #117386 - roblabla:fix-switch-stdio-win7, r=ChrisDenton
Fix switch_stdout_to on Windows7

The `switch_stdout_to` test was broken on Windows7, as deleting the temporary test folder would fail since the `switch-stdout-output` file we redirected the stdout to is never closed, and it's impossible on Win7 to delete an opened file.

To fix this issue, we make `switch_stdout_to` return the previous handle. Using this, we add a new `switch_stdout_to` call at the end of the test to return the stdio handles to their original state, and recover the handle to the file we opened. This handle is automatically closed at the end of the function, which should allow the temporary test folder to be deleted properly.
2023-11-02 07:58:38 +00:00
..
benches mv std libs to library/ 2020-07-27 19:51:13 -05:00
src Auto merge of #115356 - devnexen:haiku_set_name_use_return, r=thomcc 2023-11-01 07:53:49 +00:00
tests Fix switch_stdout_to on Windows7 2023-10-31 09:50:07 +01:00
build.rs changes from feedback 2023-10-20 23:55:14 +01:00
Cargo.toml Increase the reach of panic_immediate_abort 2023-10-29 09:31:07 -04:00