@@ -15,7 +15,12 @@ use regex::Regex;
1515use std:: fs:: { File , OpenOptions } ;
1616use std:: io:: { BufReader , Read , Write } ;
1717use 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+ ) ) ]
1924use std:: process:: { Command , Stdio } ;
2025#[ cfg( not( windows) ) ]
2126use 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+ ) ) ]
15901600fn 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+ ) ) ]
16261641fn test_reading_partial_blocks_from_fifo_unbuffered ( ) {
16271642 // Create the FIFO.
16281643 let ts = TestScenario :: new ( util_name ! ( ) ) ;
0 commit comments