diff options
| author | roblabla <unfiltered@roblab.la> | 2023-10-30 10:15:27 +0100 |
|---|---|---|
| committer | roblabla <unfiltered@roblab.la> | 2023-10-31 09:50:07 +0100 |
| commit | 4971e997e576aaeec268fed76aa61a033ad67870 (patch) | |
| tree | 9fccbcacbeaa3619dab593bca7793c448fbee278 /compiler/rustc_driver_impl/src | |
| parent | 91bbdd927a5e53a2fe126304fe8adbedf339616c (diff) | |
| download | rust-4971e997e576aaeec268fed76aa61a033ad67870.tar.gz rust-4971e997e576aaeec268fed76aa61a033ad67870.zip | |
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.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
0 files changed, 0 insertions, 0 deletions
