summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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(_) => {}
}