mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
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:
commit
22f91b0501
1 changed files with 18 additions and 3 deletions
|
@ -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!());
|
||||
|
|
Loading…
Reference in a new issue