From 6b3f00cc3192624f2e0f763fef668de3cc9ab25d Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 1 Dec 2023 10:03:44 +0100 Subject: [PATCH] dd: skip two tests without "printf" feature --- tests/by-util/test_dd.rs | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/tests/by-util/test_dd.rs b/tests/by-util/test_dd.rs index a4c70097c..bd43ad077 100644 --- a/tests/by-util/test_dd.rs +++ b/tests/by-util/test_dd.rs @@ -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; @@ -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!()); @@ -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!());