about summary refs log tree commit diff
path: root/library/std/tests/switch-stdout.rs
AgeCommit message (Collapse)AuthorLines
2025-02-09Mark extern blocks as unsafeMichael Goulet-2/+2
2024-07-29Reformat `use` declarations.Nicholas Nethercote-3/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-04-07also test parts of stdRalf Jung-0/+1
requires disabling some tests that do not work
2023-10-31Fix switch_stdout_to on Windows7roblabla-3/+21
The switch_stdout_to test was broken on Windows7, as the test infrastructure would refuse to delete the temporary test folder because the switch-stdout-output file we redirected the stdout to was still opened. To fix this issue, we make switch_stdout_to return the previous handle, and add a new switch_stdout_to call at the end of the test to return the stdio handles to their original state. The handle the second switch_stdout_to returns will be automatically closed, which should allow the temporary test folder to be deleted properly.
2023-07-28Fix switch-stdout test for none unix/windows platformsRaoul Strackx-1/+1
2023-06-07Make Unix or Windows mandatory for the `switch-stdout.rs` testMoskalykA-0/+2
2023-06-07Move two tests from `tests/ui/std` to `library/std/tests`MoskalykA-0/+51