From e3405b2b08bcb7d9206aef48f7d4005fa046b6d5 Mon Sep 17 00:00:00 2001 From: Martin Bammer Date: Sat, 26 Oct 2024 08:30:05 +0200 Subject: [PATCH] test --- scandir/tests/scandir.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scandir/tests/scandir.rs b/scandir/tests/scandir.rs index 8572b3d..cf4a98c 100644 --- a/scandir/tests/scandir.rs +++ b/scandir/tests/scandir.rs @@ -81,8 +81,10 @@ fn test_scandir_extended() -> Result<(), Error> { ScandirResult::DirEntryExt(d) => { assert!(vec!["dir1", "dir2", "dir3"].contains(&d.path.as_str())); assert!(d.is_dir); - #[cfg(unix)] + #[cfg(target_os = "linux")] assert_eq!(4096, d.st_size); + #[cfg(target_os = "macos")] + assert_eq!(96, d.st_size); #[cfg(windows)] assert_eq!(0, d.st_size); }