Skip to content

Commit 22f91b0

Browse files
authored
Merge pull request #5607 from cakebaker/dd_fix_not_found_in_this_scope_error
dd: skip two tests without "printf" feature
2 parents 319315c + 6b3f00c commit 22f91b0

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

tests/by-util/test_dd.rs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ use regex::Regex;
1515
use std::fs::{File, OpenOptions};
1616
use std::io::{BufReader, Read, Write};
1717
use std::path::PathBuf;
18-
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "freebsd")))]
18+
#[cfg(all(
19+
unix,
20+
not(target_os = "macos"),
21+
not(target_os = "freebsd"),
22+
feature = "printf"
23+
))]
1924
use std::process::{Command, Stdio};
2025
#[cfg(not(windows))]
2126
use std::thread::sleep;
@@ -1586,7 +1591,12 @@ fn test_seek_past_dev() {
15861591
}
15871592

15881593
#[test]
1589-
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "freebsd")))]
1594+
#[cfg(all(
1595+
unix,
1596+
not(target_os = "macos"),
1597+
not(target_os = "freebsd"),
1598+
feature = "printf"
1599+
))]
15901600
fn test_reading_partial_blocks_from_fifo() {
15911601
// Create the FIFO.
15921602
let ts = TestScenario::new(util_name!());
@@ -1622,7 +1632,12 @@ fn test_reading_partial_blocks_from_fifo() {
16221632
}
16231633

16241634
#[test]
1625-
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "freebsd")))]
1635+
#[cfg(all(
1636+
unix,
1637+
not(target_os = "macos"),
1638+
not(target_os = "freebsd"),
1639+
feature = "printf"
1640+
))]
16261641
fn test_reading_partial_blocks_from_fifo_unbuffered() {
16271642
// Create the FIFO.
16281643
let ts = TestScenario::new(util_name!());

0 commit comments

Comments
 (0)