Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
brmmm3 committed Oct 26, 2024
1 parent 706e60b commit e3405b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scandir/tests/scandir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e3405b2

Please sign in to comment.