We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088a64b commit 1b9f748Copy full SHA for 1b9f748
1 file changed
tests/by-util/test_du.rs
@@ -226,7 +226,15 @@ fn du_soft_link(s: &str) {
226
}
227
#[cfg(target_os = "freebsd")]
228
fn du_soft_link(s: &str) {
229
- assert_eq!(s, "16\tsubdir/links\n");
+ // FreeBSD may have different block allocations depending on filesystem
230
+ // Accept both common sizes
231
+ let valid_sizes = ["12\tsubdir/links\n", "16\tsubdir/links\n"];
232
+ assert!(
233
+ valid_sizes.contains(&s),
234
+ "Expected one of {:?}, got {}",
235
+ valid_sizes,
236
+ s
237
+ );
238
239
#[cfg(all(
240
not(target_vendor = "apple"),
0 commit comments