From 78e28060a0a7a23ec63e7463039e511c137ac65c Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 23 Aug 2021 13:27:49 +0200 Subject: [PATCH] NORMAL_FORMAT_STR is also used for freebsd --- tests/by-util/test_stat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/by-util/test_stat.rs b/tests/by-util/test_stat.rs index af9e3de45..9bbb1c1ca 100644 --- a/tests/by-util/test_stat.rs +++ b/tests/by-util/test_stat.rs @@ -102,7 +102,7 @@ fn test_invalid_option() { new_ucmd!().arg("-w").arg("-q").arg("/").fails(); } -#[cfg(any(target_os = "linux", target_vendor = "apple"))] +#[cfg(unix)] const NORMAL_FORMAT_STR: &str = "%a %A %b %B %d %D %f %F %g %G %h %i %m %n %o %s %u %U %x %X %y %Y %z %Z"; // avoid "%w %W" (birth/creation) due to `stat` limitations and linux kernel & rust version capability variations #[cfg(any(target_os = "linux"))]