ls: use cfg unix

This commit is contained in:
oech3
2026-04-23 10:15:38 +02:00
committed by Daniel Hofstetter
parent 25a5b3f0b9
commit 2f49d8eb02
2 changed files with 3 additions and 32 deletions
+1 -10
View File
@@ -5054,16 +5054,7 @@ fn test_tabsize_formatting() {
.stdout_is("aaaaaaaa cccc\nbbbb dddddddd\n");
}
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "dragonfly",
target_os = "netbsd",
target_os = "openbsd",
target_os = "illumos",
target_os = "solaris",
target_vendor = "apple"
))]
#[cfg(all(unix, not(target_os = "android")))]
#[test]
fn test_device_number() {
use std::fs::{metadata, read_dir};