From 033dd3a0aee94421b2f3d9d996f8d44a18de46c4 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sat, 23 Jan 2016 05:04:32 +0100 Subject: [PATCH] tests/chmod: fix tests on nightly --- tests/chmod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/chmod.rs b/tests/chmod.rs index 8e1abe2ec..1e140a3af 100644 --- a/tests/chmod.rs +++ b/tests/chmod.rs @@ -16,7 +16,7 @@ struct TestCase { } fn mkfile(file: &str, mode: mode_t) { - std::fs::OpenOptions::new().mode(mode).create(true).open(file).unwrap(); + std::fs::OpenOptions::new().mode(mode).create(true).write(true).open(file).unwrap(); let mut perms = std::fs::metadata(file).unwrap().permissions(); perms.set_mode(mode); std::fs::set_permissions(file, perms).unwrap();