about summary refs log tree commit diff
path: root/library/std/tests/switch-stdout.rs
diff options
context:
space:
mode:
authorMoskalykA <100430077+MoskalykA@users.noreply.github.com>2023-06-07 21:51:57 +0200
committerMoskalykA <100430077+MoskalykA@users.noreply.github.com>2023-06-07 21:51:57 +0200
commit4227c0a406f31b7a2b2f4423541234d480a66e70 (patch)
tree33bb5548c5a7398855c206568e053865fc408455 /library/std/tests/switch-stdout.rs
parent2f093c67eadbf763601fd195dfc0d3e0c421fe82 (diff)
downloadrust-4227c0a406f31b7a2b2f4423541234d480a66e70.tar.gz
rust-4227c0a406f31b7a2b2f4423541234d480a66e70.zip
Make Unix or Windows mandatory for the `switch-stdout.rs` test
Diffstat (limited to 'library/std/tests/switch-stdout.rs')
-rw-r--r--library/std/tests/switch-stdout.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/tests/switch-stdout.rs b/library/std/tests/switch-stdout.rs
index 2f01504043d..28ce6dfccd3 100644
--- a/library/std/tests/switch-stdout.rs
+++ b/library/std/tests/switch-stdout.rs
@@ -1,3 +1,5 @@
+#[cfg(any(target_family = "unix", target_family = "windows"))]
+
 use std::fs::File;
 use std::io::{Read, Write};