Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions tests/by-util/test_dd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ use regex::Regex;
use std::fs::{File, OpenOptions};
use std::io::{BufReader, Read, Write};
use std::path::PathBuf;
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "freebsd")))]
#[cfg(all(
unix,
not(target_os = "macos"),
not(target_os = "freebsd"),
feature = "printf"
))]
use std::process::{Command, Stdio};
#[cfg(not(windows))]
use std::thread::sleep;
Expand Down Expand Up @@ -1586,7 +1591,12 @@ fn test_seek_past_dev() {
}

#[test]
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "freebsd")))]
#[cfg(all(
unix,
not(target_os = "macos"),
not(target_os = "freebsd"),
feature = "printf"
))]
fn test_reading_partial_blocks_from_fifo() {
// Create the FIFO.
let ts = TestScenario::new(util_name!());
Expand Down Expand Up @@ -1622,7 +1632,12 @@ fn test_reading_partial_blocks_from_fifo() {
}

#[test]
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "freebsd")))]
#[cfg(all(
unix,
not(target_os = "macos"),
not(target_os = "freebsd"),
feature = "printf"
))]
fn test_reading_partial_blocks_from_fifo_unbuffered() {
// Create the FIFO.
let ts = TestScenario::new(util_name!());
Expand Down