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 4e72918 commit 43e26c0Copy full SHA for 43e26c0
tests/by-util/test_ln.rs
@@ -7,8 +7,6 @@
7
use std::path::PathBuf;
8
use uutests::{at_and_ts, at_and_ucmd, new_ucmd};
9
10
-#[cfg(unix)]
11
-use std::ffi::OsStr;
12
#[cfg(unix)]
13
use std::os::unix::ffi::OsStrExt;
14
@@ -906,9 +904,10 @@ fn test_ln_extra_operand() {
906
904
.stderr_contains("--help");
907
905
}
908
909
+#[cfg(target_os = "linux")]
910
#[test]
911
fn test_ln_cannot_stat_non_utf8() {
+ use std::ffi::OsStr;
912
let (at, ts) = at_and_ts!();
913
at.mkdir("target_dir");
914
at.touch(OsStr::from_bytes(b"file_\xFF"));
0 commit comments