| author | |
| committer | |
| log | 00382f6dae83291468f0ba792f2cefc0216098da |
| tree | f4900c8e51005a655cd96e931bdde70eface3027 |
| parent | 790d439ce22888145e5a2c33052fe114b56049d4 |
14 files changed, 9 insertions(+), 42 deletions(-)
lib/std/atomic/queue.zig-3| ... | @@ -152,9 +152,6 @@ const puts_per_thread = 500; | ... | @@ -152,9 +152,6 @@ const puts_per_thread = 500; |
| 152 | const put_thread_count = 3; | 152 | const put_thread_count = 3; |
| 153 | 153 | ||
| 154 | test "std.atomic.Queue" { | 154 | test "std.atomic.Queue" { |
| 155 | // https://github.com/ziglang/zig/issues/3563 | ||
| 156 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 157 | |||
| 158 | var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024); | 155 | var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024); |
| 159 | defer std.heap.direct_allocator.free(plenty_of_memory); | 156 | defer std.heap.direct_allocator.free(plenty_of_memory); |
| 160 | 157 |
lib/std/atomic/stack.zig-3| ... | @@ -86,9 +86,6 @@ const puts_per_thread = 500; | ... | @@ -86,9 +86,6 @@ const puts_per_thread = 500; |
| 86 | const put_thread_count = 3; | 86 | const put_thread_count = 3; |
| 87 | 87 | ||
| 88 | test "std.atomic.stack" { | 88 | test "std.atomic.stack" { |
| 89 | // https://github.com/ziglang/zig/issues/3563 | ||
| 90 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 91 | |||
| 92 | var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024); | 89 | var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024); |
| 93 | defer std.heap.direct_allocator.free(plenty_of_memory); | 90 | defer std.heap.direct_allocator.free(plenty_of_memory); |
| 94 | 91 |
lib/std/event/channel.zig-3| ... | @@ -263,9 +263,6 @@ pub fn Channel(comptime T: type) type { | ... | @@ -263,9 +263,6 @@ pub fn Channel(comptime T: type) type { |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | test "std.event.Channel" { | 265 | test "std.event.Channel" { |
| 266 | // https://github.com/ziglang/zig/issues/3563 | ||
| 267 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 268 | |||
| 269 | // https://github.com/ziglang/zig/issues/1908 | 266 | // https://github.com/ziglang/zig/issues/1908 |
| 270 | if (builtin.single_threaded) return error.SkipZigTest; | 267 | if (builtin.single_threaded) return error.SkipZigTest; |
| 271 | 268 |
lib/std/event/group.zig-3| ... | @@ -81,9 +81,6 @@ pub fn Group(comptime ReturnType: type) type { | ... | @@ -81,9 +81,6 @@ pub fn Group(comptime ReturnType: type) type { |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | test "std.event.Group" { | 83 | test "std.event.Group" { |
| 84 | // https://github.com/ziglang/zig/issues/3563 | ||
| 85 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 86 | |||
| 87 | // https://github.com/ziglang/zig/issues/1908 | 84 | // https://github.com/ziglang/zig/issues/1908 |
| 88 | if (builtin.single_threaded) return error.SkipZigTest; | 85 | if (builtin.single_threaded) return error.SkipZigTest; |
| 89 | 86 |
lib/std/event/lock.zig-3| ... | @@ -117,9 +117,6 @@ pub const Lock = struct { | ... | @@ -117,9 +117,6 @@ pub const Lock = struct { |
| 117 | }; | 117 | }; |
| 118 | 118 | ||
| 119 | test "std.event.Lock" { | 119 | test "std.event.Lock" { |
| 120 | // https://github.com/ziglang/zig/issues/3563 | ||
| 121 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 122 | |||
| 123 | // TODO https://github.com/ziglang/zig/issues/1908 | 120 | // TODO https://github.com/ziglang/zig/issues/1908 |
| 124 | if (builtin.single_threaded) return error.SkipZigTest; | 121 | if (builtin.single_threaded) return error.SkipZigTest; |
| 125 | 122 |
lib/std/fs.zig+3-3| ... | @@ -424,7 +424,7 @@ pub const Dir = struct { | ... | @@ -424,7 +424,7 @@ pub const Dir = struct { |
| 424 | self.end_index = @intCast(usize, rc); | 424 | self.end_index = @intCast(usize, rc); |
| 425 | } | 425 | } |
| 426 | const darwin_entry = @ptrCast(*align(1) os.dirent, &self.buf[self.index]); | 426 | const darwin_entry = @ptrCast(*align(1) os.dirent, &self.buf[self.index]); |
| 427 | const next_index = self.index + darwin_entry.d_reclen; | 427 | const next_index = self.index + darwin_entry.reclen(); |
| 428 | self.index = next_index; | 428 | self.index = next_index; |
| 429 | 429 | ||
| 430 | const name = @ptrCast([*]u8, &darwin_entry.d_name)[0..darwin_entry.d_namlen]; | 430 | const name = @ptrCast([*]u8, &darwin_entry.d_name)[0..darwin_entry.d_namlen]; |
| ... | @@ -473,7 +473,7 @@ pub const Dir = struct { | ... | @@ -473,7 +473,7 @@ pub const Dir = struct { |
| 473 | self.end_index = @intCast(usize, rc); | 473 | self.end_index = @intCast(usize, rc); |
| 474 | } | 474 | } |
| 475 | const freebsd_entry = @ptrCast(*align(1) os.dirent, &self.buf[self.index]); | 475 | const freebsd_entry = @ptrCast(*align(1) os.dirent, &self.buf[self.index]); |
| 476 | const next_index = self.index + freebsd_entry.d_reclen; | 476 | const next_index = self.index + freebsd_entry.reclen(); |
| 477 | self.index = next_index; | 477 | self.index = next_index; |
| 478 | 478 | ||
| 479 | const name = @ptrCast([*]u8, &freebsd_entry.d_name)[0..freebsd_entry.d_namlen]; | 479 | const name = @ptrCast([*]u8, &freebsd_entry.d_name)[0..freebsd_entry.d_namlen]; |
| ... | @@ -529,7 +529,7 @@ pub const Dir = struct { | ... | @@ -529,7 +529,7 @@ pub const Dir = struct { |
| 529 | self.end_index = rc; | 529 | self.end_index = rc; |
| 530 | } | 530 | } |
| 531 | const linux_entry = @ptrCast(*align(1) os.dirent64, &self.buf[self.index]); | 531 | const linux_entry = @ptrCast(*align(1) os.dirent64, &self.buf[self.index]); |
| 532 | const next_index = self.index + linux_entry.d_reclen; | 532 | const next_index = self.index + linux_entry.reclen(); |
| 533 | self.index = next_index; | 533 | self.index = next_index; |
| 534 | 534 | ||
| 535 | const name = mem.toSlice(u8, @ptrCast([*]u8, &linux_entry.d_name)); | 535 | const name = mem.toSlice(u8, @ptrCast([*]u8, &linux_entry.d_name)); |
lib/std/mutex.zig-3| ... | @@ -130,9 +130,6 @@ const TestContext = struct { | ... | @@ -130,9 +130,6 @@ const TestContext = struct { |
| 130 | }; | 130 | }; |
| 131 | 131 | ||
| 132 | test "std.Mutex" { | 132 | test "std.Mutex" { |
| 133 | // https://github.com/ziglang/zig/issues/3563 | ||
| 134 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 135 | |||
| 136 | var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024); | 133 | var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024); |
| 137 | defer std.heap.direct_allocator.free(plenty_of_memory); | 134 | defer std.heap.direct_allocator.free(plenty_of_memory); |
| 138 | 135 |
lib/std/os/bits/darwin.zig+1-1| ... | @@ -128,7 +128,7 @@ pub const dirent = extern struct { | ... | @@ -128,7 +128,7 @@ pub const dirent = extern struct { |
| 128 | d_type: u8, | 128 | d_type: u8, |
| 129 | d_name: u8, // field address is address of first byte of name | 129 | d_name: u8, // field address is address of first byte of name |
| 130 | 130 | ||
| 131 | pub fn reclen(self: dirent) usize { | 131 | pub fn reclen(self: dirent) u16 { |
| 132 | return self.d_reclen; | 132 | return self.d_reclen; |
| 133 | } | 133 | } |
| 134 | }; | 134 | }; |
lib/std/os/bits/dragonfly.zig+2-2| ... | @@ -314,8 +314,8 @@ pub const dirent = extern struct { | ... | @@ -314,8 +314,8 @@ pub const dirent = extern struct { |
| 314 | d_unused2: u32, | 314 | d_unused2: u32, |
| 315 | d_name: [256]u8, | 315 | d_name: [256]u8, |
| 316 | 316 | ||
| 317 | pub fn reclen(self: dirent) usize { | 317 | pub fn reclen(self: dirent) u16 { |
| 318 | return (@byteOffsetOf(dirent, "d_name") + self.d_namlen + 1 + 7) & ~usize(7); | 318 | return (@byteOffsetOf(dirent, "d_name") + self.d_namlen + 1 + 7) & ~u16(7); |
| 319 | } | 319 | } |
| 320 | }; | 320 | }; |
| 321 | 321 |
lib/std/os/bits/freebsd.zig+1-1| ... | @@ -133,7 +133,7 @@ pub const dirent = extern struct { | ... | @@ -133,7 +133,7 @@ pub const dirent = extern struct { |
| 133 | d_pad1: u16, | 133 | d_pad1: u16, |
| 134 | d_name: [256]u8, | 134 | d_name: [256]u8, |
| 135 | 135 | ||
| 136 | pub fn reclen(self: dirent) usize { | 136 | pub fn reclen(self: dirent) u16 { |
| 137 | return self.d_reclen; | 137 | return self.d_reclen; |
| 138 | } | 138 | } |
| 139 | }; | 139 | }; |
lib/std/os/bits/linux.zig+1-1| ... | @@ -988,7 +988,7 @@ pub const dirent64 = extern struct { | ... | @@ -988,7 +988,7 @@ pub const dirent64 = extern struct { |
| 988 | d_type: u8, | 988 | d_type: u8, |
| 989 | d_name: u8, // field address is the address of first byte of name https://github.com/ziglang/zig/issues/173 | 989 | d_name: u8, // field address is the address of first byte of name https://github.com/ziglang/zig/issues/173 |
| 990 | 990 | ||
| 991 | pub fn reclen(self: dirent) usize { | 991 | pub fn reclen(self: dirent) u16 { |
| 992 | return self.d_reclen; | 992 | return self.d_reclen; |
| 993 | } | 993 | } |
| 994 | }; | 994 | }; |
lib/std/os/bits/netbsd.zig+1-1| ... | @@ -129,7 +129,7 @@ pub const dirent = extern struct { | ... | @@ -129,7 +129,7 @@ pub const dirent = extern struct { |
| 129 | d_off: i64, | 129 | d_off: i64, |
| 130 | d_name: [512]u8, | 130 | d_name: [512]u8, |
| 131 | 131 | ||
| 132 | pub fn reclen(self: dirent) usize { | 132 | pub fn reclen(self: dirent) u16 { |
| 133 | return self.d_reclen; | 133 | return self.d_reclen; |
| 134 | } | 134 | } |
| 135 | }; | 135 | }; |
lib/std/os/test.zig-12| ... | @@ -16,9 +16,6 @@ const AtomicRmwOp = builtin.AtomicRmwOp; | ... | @@ -16,9 +16,6 @@ const AtomicRmwOp = builtin.AtomicRmwOp; |
| 16 | const AtomicOrder = builtin.AtomicOrder; | 16 | const AtomicOrder = builtin.AtomicOrder; |
| 17 | 17 | ||
| 18 | test "makePath, put some files in it, deleteTree" { | 18 | test "makePath, put some files in it, deleteTree" { |
| 19 | // https://github.com/ziglang/zig/issues/3563 | ||
| 20 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 21 | |||
| 22 | try fs.makePath(a, "os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "c"); | 19 | try fs.makePath(a, "os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "c"); |
| 23 | try io.writeFile("os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "c" ++ fs.path.sep_str ++ "file.txt", "nonsense"); | 20 | try io.writeFile("os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "c" ++ fs.path.sep_str ++ "file.txt", "nonsense"); |
| 24 | try io.writeFile("os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "file2.txt", "blah"); | 21 | try io.writeFile("os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "file2.txt", "blah"); |
| ... | @@ -31,9 +28,6 @@ test "makePath, put some files in it, deleteTree" { | ... | @@ -31,9 +28,6 @@ test "makePath, put some files in it, deleteTree" { |
| 31 | } | 28 | } |
| 32 | 29 | ||
| 33 | test "access file" { | 30 | test "access file" { |
| 34 | // https://github.com/ziglang/zig/issues/3563 | ||
| 35 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 36 | |||
| 37 | try fs.makePath(a, "os_test_tmp"); | 31 | try fs.makePath(a, "os_test_tmp"); |
| 38 | if (File.access("os_test_tmp" ++ fs.path.sep_str ++ "file.txt")) |ok| { | 32 | if (File.access("os_test_tmp" ++ fs.path.sep_str ++ "file.txt")) |ok| { |
| 39 | @panic("expected error"); | 33 | @panic("expected error"); |
| ... | @@ -101,9 +95,6 @@ test "cpu count" { | ... | @@ -101,9 +95,6 @@ test "cpu count" { |
| 101 | } | 95 | } |
| 102 | 96 | ||
| 103 | test "AtomicFile" { | 97 | test "AtomicFile" { |
| 104 | // https://github.com/ziglang/zig/issues/3563 | ||
| 105 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 106 | |||
| 107 | var buffer: [1024]u8 = undefined; | 98 | var buffer: [1024]u8 = undefined; |
| 108 | const allocator = &std.heap.FixedBufferAllocator.init(buffer[0..]).allocator; | 99 | const allocator = &std.heap.FixedBufferAllocator.init(buffer[0..]).allocator; |
| 109 | const test_out_file = "tmp_atomic_file_test_dest.txt"; | 100 | const test_out_file = "tmp_atomic_file_test_dest.txt"; |
| ... | @@ -124,9 +115,6 @@ test "AtomicFile" { | ... | @@ -124,9 +115,6 @@ test "AtomicFile" { |
| 124 | } | 115 | } |
| 125 | 116 | ||
| 126 | test "thread local storage" { | 117 | test "thread local storage" { |
| 127 | // https://github.com/ziglang/zig/issues/3563 | ||
| 128 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 129 | |||
| 130 | if (builtin.single_threaded) return error.SkipZigTest; | 118 | if (builtin.single_threaded) return error.SkipZigTest; |
| 131 | const thread1 = try Thread.spawn({}, testTls); | 119 | const thread1 = try Thread.spawn({}, testTls); |
| 132 | const thread2 = try Thread.spawn({}, testTls); | 120 | const thread2 = try Thread.spawn({}, testTls); |
lib/std/statically_initialized_mutex.zig-3| ... | @@ -61,9 +61,6 @@ pub const StaticallyInitializedMutex = switch (builtin.os) { | ... | @@ -61,9 +61,6 @@ pub const StaticallyInitializedMutex = switch (builtin.os) { |
| 61 | }; | 61 | }; |
| 62 | 62 | ||
| 63 | test "std.StaticallyInitializedMutex" { | 63 | test "std.StaticallyInitializedMutex" { |
| 64 | // https://github.com/ziglang/zig/issues/3563 | ||
| 65 | if (builtin.os == .dragonfly) return error.SkipZigTest; | ||
| 66 | |||
| 67 | const TestContext = struct { | 64 | const TestContext = struct { |
| 68 | data: i128, | 65 | data: i128, |
| 69 | 66 |