authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2024-02-29 15:55:06-08:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2024-02-29 16:12:24-08:00
loge80d4bc6f88d477af802c9e4db413814d0888c78
tree03522729f8078ebc9bde950a7c603040f7ed326a
parente233971e4fe19953ce8af63860a0791f5ca1268e

Re-enable and fix tar pipeToFileSystem test on Windows


1 files changed, 1 insertions(+), 4 deletions(-)

lib/std/tar/test.zig+1-4
...@@ -464,9 +464,6 @@ test "tar case sensitivity" {...@@ -464,9 +464,6 @@ test "tar case sensitivity" {
464}464}
465465
466test "tar pipeToFileSystem" {466test "tar pipeToFileSystem" {
467 const builtin = @import("builtin");
468 if (builtin.os.tag == .windows) return error.SkipZigTest;
469
470 // $ tar tvf467 // $ tar tvf
471 // pipe_to_file_system_test/468 // pipe_to_file_system_test/
472 // pipe_to_file_system_test/b/469 // pipe_to_file_system_test/b/
...@@ -494,6 +491,6 @@ test "tar pipeToFileSystem" {...@@ -494,6 +491,6 @@ test "tar pipeToFileSystem" {
494 try testing.expect((try root.dir.statFile("a/file")).kind == .file);491 try testing.expect((try root.dir.statFile("a/file")).kind == .file);
495 // TODO is there better way to test symlink492 // TODO is there better way to test symlink
496 try testing.expect((try root.dir.statFile("b/symlink")).kind == .file); // statFile follows symlink493 try testing.expect((try root.dir.statFile("b/symlink")).kind == .file); // statFile follows symlink
497 var buf: [8]u8 = undefined;494 var buf: [32]u8 = undefined;
498 _ = try root.dir.readLink("b/symlink", &buf);495 _ = try root.dir.readLink("b/symlink", &buf);
499}496}