Skip to content

Commit b47120d

Browse files
committed
Apparently not all mkstemp implementation require the X at the end (despite its documentation\!), checking the failure of a directory now
1 parent 7c0f5e3 commit b47120d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_unistd.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ fn test_mkstemp() {
6666
Err(e) => panic!("mkstemp failed: {}", e)
6767
}
6868

69-
let result = mkstemp("/tmp/nix_tempfile");
69+
let result = mkstemp("/tmp/");
7070
match result {
7171
Ok(_) => {
72-
panic!("mkstemp succeeded even though it should fail (no X at the end)");
72+
panic!("mkstemp succeeded even though it should fail (provided a directory)");
7373
},
7474
Err(_) => {}
7575
}

0 commit comments

Comments
 (0)