Commit Graph

4 Commits

Author SHA1 Message Date
roblabla
4971e997e5 Fix switch_stdout_to on Windows7
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-10-31 09:50:07 +01:00
Raoul Strackx
9454916c84 Fix switch-stdout test for none unix/windows platforms 2023-07-28 13:54:07 +02:00
MoskalykA
4227c0a406 Make Unix or Windows mandatory for the switch-stdout.rs test 2023-06-07 21:51:57 +02:00
MoskalykA
2f093c67ea Move two tests from tests/ui/std to library/std/tests 2023-06-07 18:40:25 +02:00