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 7e6e9c2 commit 64fb7a7Copy full SHA for 64fb7a7
tests/by-util/test_mkdir.rs
@@ -34,6 +34,18 @@ fn test_mkdir_mkdir() {
34
new_ucmd!().arg("test_dir").succeeds();
35
}
36
37
+#[cfg(feature = "test_risky_names")]
38
+#[test]
39
+fn test_mkdir_non_unicode() {
40
+ let (at, mut ucmd) = at_and_ucmd!();
41
+
42
+ let target = uucore::os_str_from_bytes(b"some-\xc0-dir-\xf3")
43
+ .expect("Only unix platforms can test non-unicode names");
44
+ ucmd.arg(&target).succeeds();
45
46
+ assert!(at.dir_exists(target));
47
+}
48
49
#[test]
50
fn test_mkdir_verbose() {
51
let expected = "mkdir: created directory 'test_dir'\n";
0 commit comments