about summary refs log tree commit diff
path: root/library/std/src/io/tests.rs
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2025-01-17 16:55:10 +0100
committerTobias Bucher <tobiasbucher5991@gmail.com>2025-01-26 12:40:36 +0100
commit68e983fcf7226c2e17b1dd568e566b02989efec5 (patch)
treeb66a9e6bb149b5e8529af084b98ffa22cadf691c /library/std/src/io/tests.rs
parentc2270becb63d4c52a2740137db2e9b49246f9362 (diff)
downloadrust-68e983fcf7226c2e17b1dd568e566b02989efec5.tar.gz
rust-68e983fcf7226c2e17b1dd568e566b02989efec5.zip
Move `std::io::pipe` code into its own file
Diffstat (limited to 'library/std/src/io/tests.rs')
-rw-r--r--library/std/src/io/tests.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/library/std/src/io/tests.rs b/library/std/src/io/tests.rs
index 226cc6011bc..f64f034cce7 100644
--- a/library/std/src/io/tests.rs
+++ b/library/std/src/io/tests.rs
@@ -821,20 +821,3 @@ fn try_oom_error() {
     let io_err = io::Error::from(reserve_err);
     assert_eq!(io::ErrorKind::OutOfMemory, io_err.kind());
 }
-
-#[test]
-#[cfg(all(windows, unix, not(miri)))]
-fn pipe_creation_clone_and_rw() {
-    let (rx, tx) = std::io::pipe().unwrap();
-
-    tx.try_clone().unwrap().write_all(b"12345").unwrap();
-    drop(tx);
-
-    let mut rx2 = rx.try_clone().unwrap();
-    drop(rx);
-
-    let mut s = String::new();
-    rx2.read_to_string(&mut s).unwrap();
-    drop(rx2);
-    assert_eq!(s, "12345");
-}