authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-30 21:29:45-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-30 21:29:45-04:00
log6a15e8a7a771bcbf2534cceecd77231344aafbf8
tree4b9f34412be146d95976e9427a8f898be8613a0b
parent33cc2044811e41a74e3112fc0abcc5dc6fd34836
signature Commit is signed but in an unrecognized format.

add comments to disabled tests linking to the tracking issue


10 files changed, 30 insertions(+), 2 deletions(-)

lib/std/atomic/queue.zig+2
...@@ -152,7 +152,9 @@ const puts_per_thread = 500;...@@ -152,7 +152,9 @@ const puts_per_thread = 500;
152const put_thread_count = 3;152const put_thread_count = 3;
153153
154test "std.atomic.Queue" {154test "std.atomic.Queue" {
155 // https://github.com/ziglang/zig/issues/3563
155 if (builtin.os == .dragonfly) return error.SkipZigTest;156 if (builtin.os == .dragonfly) return error.SkipZigTest;
157
156 var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024);158 var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024);
157 defer std.heap.direct_allocator.free(plenty_of_memory);159 defer std.heap.direct_allocator.free(plenty_of_memory);
158160
lib/std/atomic/stack.zig+2
...@@ -86,7 +86,9 @@ const puts_per_thread = 500;...@@ -86,7 +86,9 @@ const puts_per_thread = 500;
86const put_thread_count = 3;86const put_thread_count = 3;
8787
88test "std.atomic.stack" {88test "std.atomic.stack" {
89 // https://github.com/ziglang/zig/issues/3563
89 if (builtin.os == .dragonfly) return error.SkipZigTest;90 if (builtin.os == .dragonfly) return error.SkipZigTest;
91
90 var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024);92 var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024);
91 defer std.heap.direct_allocator.free(plenty_of_memory);93 defer std.heap.direct_allocator.free(plenty_of_memory);
9294
lib/std/event/channel.zig+3
...@@ -304,9 +304,12 @@ pub fn Channel(comptime T: type) type {...@@ -304,9 +304,12 @@ pub fn Channel(comptime T: type) type {
304}304}
305305
306test "std.event.Channel" {306test "std.event.Channel" {
307 // https://github.com/ziglang/zig/issues/3563
307 if (builtin.os == .dragonfly) return error.SkipZigTest;308 if (builtin.os == .dragonfly) return error.SkipZigTest;
309
308 // https://github.com/ziglang/zig/issues/1908310 // https://github.com/ziglang/zig/issues/1908
309 if (builtin.single_threaded) return error.SkipZigTest;311 if (builtin.single_threaded) return error.SkipZigTest;
312
310 // https://github.com/ziglang/zig/issues/3251313 // https://github.com/ziglang/zig/issues/3251
311 if (builtin.os == .freebsd) return error.SkipZigTest;314 if (builtin.os == .freebsd) return error.SkipZigTest;
312315
lib/std/event/group.zig+2
...@@ -81,7 +81,9 @@ pub fn Group(comptime ReturnType: type) type {...@@ -81,7 +81,9 @@ pub fn Group(comptime ReturnType: type) type {
81}81}
8282
83test "std.event.Group" {83test "std.event.Group" {
84 // https://github.com/ziglang/zig/issues/3563
84 if (builtin.os == .dragonfly) return error.SkipZigTest;85 if (builtin.os == .dragonfly) return error.SkipZigTest;
86
85 // https://github.com/ziglang/zig/issues/190887 // https://github.com/ziglang/zig/issues/1908
86 if (builtin.single_threaded) return error.SkipZigTest;88 if (builtin.single_threaded) return error.SkipZigTest;
8789
lib/std/event/lock.zig+3
...@@ -116,9 +116,12 @@ pub const Lock = struct {...@@ -116,9 +116,12 @@ pub const Lock = struct {
116};116};
117117
118test "std.event.Lock" {118test "std.event.Lock" {
119 // https://github.com/ziglang/zig/issues/3563
119 if (builtin.os == .dragonfly) return error.SkipZigTest;120 if (builtin.os == .dragonfly) return error.SkipZigTest;
121
120 // TODO https://github.com/ziglang/zig/issues/1908122 // TODO https://github.com/ziglang/zig/issues/1908
121 if (builtin.single_threaded) return error.SkipZigTest;123 if (builtin.single_threaded) return error.SkipZigTest;
124
122 // TODO https://github.com/ziglang/zig/issues/3251125 // TODO https://github.com/ziglang/zig/issues/3251
123 if (builtin.os == .freebsd) return error.SkipZigTest;126 if (builtin.os == .freebsd) return error.SkipZigTest;
124127
lib/std/mutex.zig+2
...@@ -130,7 +130,9 @@ const TestContext = struct {...@@ -130,7 +130,9 @@ const TestContext = struct {
130};130};
131131
132test "std.Mutex" {132test "std.Mutex" {
133 // https://github.com/ziglang/zig/issues/3563
133 if (builtin.os == .dragonfly) return error.SkipZigTest;134 if (builtin.os == .dragonfly) return error.SkipZigTest;
135
134 var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024);136 var plenty_of_memory = try std.heap.direct_allocator.alloc(u8, 300 * 1024);
135 defer std.heap.direct_allocator.free(plenty_of_memory);137 defer std.heap.direct_allocator.free(plenty_of_memory);
136138
lib/std/os/test.zig+8
...@@ -16,7 +16,9 @@ const AtomicRmwOp = builtin.AtomicRmwOp;...@@ -16,7 +16,9 @@ const AtomicRmwOp = builtin.AtomicRmwOp;
16const AtomicOrder = builtin.AtomicOrder;16const AtomicOrder = builtin.AtomicOrder;
1717
18test "makePath, put some files in it, deleteTree" {18test "makePath, put some files in it, deleteTree" {
19 // https://github.com/ziglang/zig/issues/3563
19 if (builtin.os == .dragonfly) return error.SkipZigTest;20 if (builtin.os == .dragonfly) return error.SkipZigTest;
21
20 try fs.makePath(a, "os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "c");22 try fs.makePath(a, "os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "c");
21 try io.writeFile("os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "c" ++ fs.path.sep_str ++ "file.txt", "nonsense");23 try io.writeFile("os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "c" ++ fs.path.sep_str ++ "file.txt", "nonsense");
22 try io.writeFile("os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "file2.txt", "blah");24 try io.writeFile("os_test_tmp" ++ fs.path.sep_str ++ "b" ++ fs.path.sep_str ++ "file2.txt", "blah");
...@@ -29,7 +31,9 @@ test "makePath, put some files in it, deleteTree" {...@@ -29,7 +31,9 @@ test "makePath, put some files in it, deleteTree" {
29}31}
3032
31test "access file" {33test "access file" {
34 // https://github.com/ziglang/zig/issues/3563
32 if (builtin.os == .dragonfly) return error.SkipZigTest;35 if (builtin.os == .dragonfly) return error.SkipZigTest;
36
33 try fs.makePath(a, "os_test_tmp");37 try fs.makePath(a, "os_test_tmp");
34 if (File.access("os_test_tmp" ++ fs.path.sep_str ++ "file.txt")) |ok| {38 if (File.access("os_test_tmp" ++ fs.path.sep_str ++ "file.txt")) |ok| {
35 @panic("expected error");39 @panic("expected error");
...@@ -97,7 +101,9 @@ test "cpu count" {...@@ -97,7 +101,9 @@ test "cpu count" {
97}101}
98102
99test "AtomicFile" {103test "AtomicFile" {
104 // https://github.com/ziglang/zig/issues/3563
100 if (builtin.os == .dragonfly) return error.SkipZigTest;105 if (builtin.os == .dragonfly) return error.SkipZigTest;
106
101 var buffer: [1024]u8 = undefined;107 var buffer: [1024]u8 = undefined;
102 const allocator = &std.heap.FixedBufferAllocator.init(buffer[0..]).allocator;108 const allocator = &std.heap.FixedBufferAllocator.init(buffer[0..]).allocator;
103 const test_out_file = "tmp_atomic_file_test_dest.txt";109 const test_out_file = "tmp_atomic_file_test_dest.txt";
...@@ -118,7 +124,9 @@ test "AtomicFile" {...@@ -118,7 +124,9 @@ test "AtomicFile" {
118}124}
119125
120test "thread local storage" {126test "thread local storage" {
127 // https://github.com/ziglang/zig/issues/3563
121 if (builtin.os == .dragonfly) return error.SkipZigTest;128 if (builtin.os == .dragonfly) return error.SkipZigTest;
129
122 if (builtin.single_threaded) return error.SkipZigTest;130 if (builtin.single_threaded) return error.SkipZigTest;
123 const thread1 = try Thread.spawn({}, testTls);131 const thread1 = try Thread.spawn({}, testTls);
124 const thread2 = try Thread.spawn({}, testTls);132 const thread2 = try Thread.spawn({}, testTls);
lib/std/statically_initialized_mutex.zig+2
...@@ -61,7 +61,9 @@ pub const StaticallyInitializedMutex = switch (builtin.os) {...@@ -61,7 +61,9 @@ pub const StaticallyInitializedMutex = switch (builtin.os) {
61};61};
6262
63test "std.StaticallyInitializedMutex" {63test "std.StaticallyInitializedMutex" {
64 // https://github.com/ziglang/zig/issues/3563
64 if (builtin.os == .dragonfly) return error.SkipZigTest;65 if (builtin.os == .dragonfly) return error.SkipZigTest;
66
65 const TestContext = struct {67 const TestContext = struct {
66 data: i128,68 data: i128,
6769
test/stage1/behavior/byteswap.zig+4-2
...@@ -40,9 +40,11 @@ test "@byteSwap integers" {...@@ -40,9 +40,11 @@ test "@byteSwap integers" {
40}40}
4141
42test "@byteSwap vectors" {42test "@byteSwap vectors" {
43 // Disabled because of #331743 // https://github.com/ziglang/zig/issues/3563
44 if (builtin.os == .dragonfly) return error.SkipZigTest;44 if (builtin.os == .dragonfly) return error.SkipZigTest;
45 if (@import("builtin").arch == .mipsel) return error.SkipZigTest;45
46 // https://github.com/ziglang/zig/issues/3317
47 if (builtin.arch == .mipsel) return error.SkipZigTest;
4648
47 const ByteSwapVectorTest = struct {49 const ByteSwapVectorTest = struct {
48 fn run() void {50 fn run() void {
test/stage1/behavior/vector.zig+2
...@@ -112,7 +112,9 @@ test "array to vector" {...@@ -112,7 +112,9 @@ test "array to vector" {
112}112}
113113
114test "vector casts of sizes not divisable by 8" {114test "vector casts of sizes not divisable by 8" {
115 // https://github.com/ziglang/zig/issues/3563
115 if (builtin.os == .dragonfly) return error.SkipZigTest;116 if (builtin.os == .dragonfly) return error.SkipZigTest;
117
116 const S = struct {118 const S = struct {
117 fn doTheTest() void {119 fn doTheTest() void {
118 {120 {