Skip to content

Commit 43e26c0

Browse files
committed
Turns out this MacOS does not support this capability and same with GNU implementation
1 parent 4e72918 commit 43e26c0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/by-util/test_ln.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
use std::path::PathBuf;
88
use uutests::{at_and_ts, at_and_ucmd, new_ucmd};
99

10-
#[cfg(unix)]
11-
use std::ffi::OsStr;
1210
#[cfg(unix)]
1311
use std::os::unix::ffi::OsStrExt;
1412
#[cfg(unix)]
@@ -906,9 +904,10 @@ fn test_ln_extra_operand() {
906904
.stderr_contains("--help");
907905
}
908906

909-
#[cfg(unix)]
907+
#[cfg(target_os = "linux")]
910908
#[test]
911909
fn test_ln_cannot_stat_non_utf8() {
910+
use std::ffi::OsStr;
912911
let (at, ts) = at_and_ts!();
913912
at.mkdir("target_dir");
914913
at.touch(OsStr::from_bytes(b"file_\xFF"));

0 commit comments

Comments
 (0)