commit e80d4bc6f88d477af802c9e4db413814d0888c78 (tree)
parent e233971e4fe19953ce8af63860a0791f5ca1268e
Author: Ryan Liptak <squeek502@hotmail.com>
Date: Thu, 29 Feb 2024 15:55:06 -0800
Re-enable and fix tar pipeToFileSystem test on Windows
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/std/tar/test.zig b/lib/std/tar/test.zig
@@ -464,9 +464,6 @@ test "tar case sensitivity" {
}
test "tar pipeToFileSystem" {
- const builtin = @import("builtin");
- if (builtin.os.tag == .windows) return error.SkipZigTest;
-
// $ tar tvf
// pipe_to_file_system_test/
// pipe_to_file_system_test/b/
@@ -494,6 +491,6 @@ test "tar pipeToFileSystem" {
try testing.expect((try root.dir.statFile("a/file")).kind == .file);
// TODO is there better way to test symlink
try testing.expect((try root.dir.statFile("b/symlink")).kind == .file); // statFile follows symlink
- var buf: [8]u8 = undefined;
+ var buf: [32]u8 = undefined;
_ = try root.dir.readLink("b/symlink", &buf);
}