mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
Auto merge of #75228 - tmiasko:keep-stdout-open, r=ecstatic-morse
Keep stdout open in limit_vector_count test
This commit is contained in:
@@ -283,12 +283,12 @@ fn drop(&mut self) {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{FileDesc, IoSlice};
|
||||
use core::mem::ManuallyDrop;
|
||||
|
||||
#[test]
|
||||
fn limit_vector_count() {
|
||||
let stdout = FileDesc { fd: 1 };
|
||||
let stdout = ManuallyDrop::new(FileDesc { fd: 1 });
|
||||
let bufs = (0..1500).map(|_| IoSlice::new(&[])).collect::<Vec<_>>();
|
||||
|
||||
assert!(stdout.write_vectored(&bufs).is_ok());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user