Merge pull request #5607 from cakebaker/dd_fix_not_found_in_this_scope_error

dd: skip two tests without "printf" feature
This commit is contained in:
Sylvestre Ledru 2023-12-01 12:01:48 +01:00 committed by GitHub
commit 22f91b0501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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!());