summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Keller <philipp.keller@gmail.com>2016-09-28 07:03:52 +0200
committerPhilipp Keller <philipp.keller@gmail.com>2016-09-28 07:03:52 +0200
commitb47120d5dcb2ab71cd0ac5ee75017eee4c4f9114 (patch)
treee987f14186a1e39643e6eca2dab86317c6400bcf
parent7c0f5e3598c2489d53259253842c7a74ece773cc (diff)
downloadnix-b47120d5dcb2ab71cd0ac5ee75017eee4c4f9114.zip
Apparently not all mkstemp implementation require the X at the end (despite its documentation\!), checking the failure of a directory now
-rw-r--r--test/test_unistd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_unistd.rs b/test/test_unistd.rs
index 4ff72652..856693f6 100644
--- a/test/test_unistd.rs
+++ b/test/test_unistd.rs
@@ -66,10 +66,10 @@ fn test_mkstemp() {
Err(e) => panic!("mkstemp failed: {}", e)
}
- let result = mkstemp("/tmp/nix_tempfile");
+ let result = mkstemp("/tmp/");
match result {
Ok(_) => {
- panic!("mkstemp succeeded even though it should fail (no X at the end)");
+ panic!("mkstemp succeeded even though it should fail (provided a directory)");
},
Err(_) => {}
}