Skip to content

Commit

Permalink
More small fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Jan 9, 2024
1 parent 1e001b4 commit c504741
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions nextest-runner/src/test_command/imp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The nextest Contributors
// SPDX-License-Identifier: MIT OR Apache-2.0

use crate::test_output::CaptureStrategy;
use std::process::Stdio;
use tokio::{
Expand Down
6 changes: 5 additions & 1 deletion nextest-runner/src/test_command/unix.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The nextest Contributors
// SPDX-License-Identifier: MIT OR Apache-2.0

use super::Stdio;
use std::{
io,
Expand Down Expand Up @@ -91,7 +94,8 @@ pub(super) fn setup_io(cmd: &mut std::process::Command) -> io::Result<State> {
target_os = "linux",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox"
target_os = "redox",
target_os = "illumos"
))] {
cvt(libc::pipe2(fds.as_mut_ptr(), libc::O_CLOEXEC))?;
ours = std::os::fd::OwnedFd::from_raw_fd(fds[0]);
Expand Down
3 changes: 3 additions & 0 deletions nextest-runner/src/test_command/windows.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The nextest Contributors
// SPDX-License-Identifier: MIT OR Apache-2.0

use std::{
io,
os::windows::{ffi::OsStrExt as _, io::FromRawHandle as _, prelude::OwnedHandle},
Expand Down

0 comments on commit c504741

Please sign in to comment.