Open
Description
In order for the std lib tests to all pass using Wine, the following tests must be disabled:
diff --git a/lib/std/fs/test.zig b/lib/std/fs/test.zig
index b3cc1fe56..dc43c416e 100644
--- a/lib/std/fs/test.zig
+++ b/lib/std/fs/test.zig
@@ -16,6 +16,8 @@ const File = std.fs.File;
const tmpDir = testing.tmpDir;
test "Dir.readLink" {
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
+
var tmp = tmpDir(.{});
defer tmp.cleanup();
@@ -51,6 +53,7 @@ fn testReadLink(dir: Dir, target_path: []const u8, symlink_path: []const u8) !vo
test "readLinkAbsolute" {
if (builtin.os.tag == .wasi) return error.SkipZigTest;
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
var tmp = tmpDir(.{});
defer tmp.cleanup();
@@ -142,6 +145,8 @@ fn contains(entries: *const std.ArrayList(Dir.Entry), el: Dir.Entry) bool {
}
test "Dir.realpath smoke test" {
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
+
switch (builtin.os.tag) {
.linux, .windows, .macosx, .ios, .watchos, .tvos => {},
else => return error.SkipZigTest,
@@ -215,6 +220,8 @@ test "readAllAlloc" {
}
test "directory operations on files" {
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
+
var tmp_dir = tmpDir(.{});
defer tmp_dir.cleanup();
@@ -243,6 +250,8 @@ test "directory operations on files" {
}
test "file operations on directories" {
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
+
var tmp_dir = tmpDir(.{});
defer tmp_dir.cleanup();
@@ -275,6 +284,8 @@ test "file operations on directories" {
}
test "Dir.rename files" {
+ if (builtin.os.tag == .windows and builtin.arch == .i386) return error.SkipZigTest;
+
var tmp_dir = tmpDir(.{});
defer tmp_dir.cleanup();
@@ -384,6 +395,7 @@ test "rename" {
test "renameAbsolute" {
if (builtin.os.tag == .wasi) return error.SkipZigTest;
+ if (builtin.os.tag == .windows and builtin.arch == .i386) return error.SkipZigTest;
var tmp_dir = tmpDir(.{});
defer tmp_dir.cleanup();
@@ -459,6 +471,7 @@ test "makePath, put some files in it, deleteTree" {
test "access file" {
if (builtin.os.tag == .wasi) return error.SkipZigTest;
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
var tmp = tmpDir(.{});
defer tmp.cleanup();
diff --git a/lib/std/os/test.zig b/lib/std/os/test.zig
index 0a453d8b2..7b8b73ccb 100644
--- a/lib/std/os/test.zig
+++ b/lib/std/os/test.zig
@@ -27,6 +27,7 @@ const ArenaAllocator = std.heap.ArenaAllocator;
test "open smoke test" {
if (builtin.os.tag == .wasi) return error.SkipZigTest;
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
// TODO verify file attributes using `fstat`
@@ -116,6 +117,7 @@ test "openat smoke test" {
test "symlink with relative paths" {
if (builtin.os.tag == .wasi) return error.SkipZigTest;
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
const cwd = fs.cwd();
cwd.deleteFile("file.txt") catch {};
@@ -153,6 +155,7 @@ test "symlink with relative paths" {
test "readlink on Windows" {
if (builtin.os.tag != .windows) return error.SkipZigTest;
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
try testReadlink("C:\\ProgramData", "C:\\Users\\All Users");
try testReadlink("C:\\Users\\Default", "C:\\Users\\Default User");
@@ -188,6 +191,8 @@ test "fstatat" {
}
test "readlinkat" {
+ if (builtin.os.tag == .windows) return error.SkipZigTest;
+
var tmp = tmpDir(.{});
defer tmp.cleanup();
As responsible open source citizens, it is our duty to file helpful bug reports to the Wine project and potentially also submit fixes. This is an issue to track that progress.