1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

dd: skip two tests without "printf" feature

This commit is contained in:
Daniel Hofstetter 2023-12-01 10:03:44 +01:00
parent 319315c019
commit 6b3f00cc31

View file

@ -15,7 +15,12 @@ use regex::Regex;
use std::fs::{File, OpenOptions}; use std::fs::{File, OpenOptions};
use std::io::{BufReader, Read, Write}; use std::io::{BufReader, Read, Write};
use std::path::PathBuf; 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}; use std::process::{Command, Stdio};
#[cfg(not(windows))] #[cfg(not(windows))]
use std::thread::sleep; use std::thread::sleep;
@ -1586,7 +1591,12 @@ fn test_seek_past_dev() {
} }
#[test] #[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() { fn test_reading_partial_blocks_from_fifo() {
// Create the FIFO. // Create the FIFO.
let ts = TestScenario::new(util_name!()); let ts = TestScenario::new(util_name!());
@ -1622,7 +1632,12 @@ fn test_reading_partial_blocks_from_fifo() {
} }
#[test] #[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() { fn test_reading_partial_blocks_from_fifo_unbuffered() {
// Create the FIFO. // Create the FIFO.
let ts = TestScenario::new(util_name!()); let ts = TestScenario::new(util_name!());