add missing error code handling on Windows

This commit is contained in:
Andrew Kelley
2019-11-30 16:58:32 -05:00
parent 413f9a5cfc
commit 034ccb4e4e
4 changed files with 9 additions and 2 deletions

View File

@@ -634,7 +634,7 @@ test "File seek ops" {
test "updateTimes" {
const tmp_file_name = "just_a_temporary_file.txt";
var file = try fs.cwd().createFile(tmp_file_name, .{});
var file = try fs.cwd().createFile(tmp_file_name, .{ .read = true });
defer {
file.close();
std.fs.cwd().deleteFile(tmp_file_name) catch {};