| author | |
| committer | |
| log | 3b892f4316fd7d74218475839abc75c777b9b3db |
| tree | a613a1ee955b73551e0c25cff8d9e4c000e43952 |
| parent | fa30458e84ff2d6dad53dd39d4ab818f75f747f7 |
2 files changed, 7 insertions(+), 0 deletions(-)
lib/std/heap.zig+3| ... | @@ -1005,6 +1005,9 @@ test "PageAllocator" { | ... | @@ -1005,6 +1005,9 @@ test "PageAllocator" { |
| 1005 | 1005 | ||
| 1006 | test "HeapAllocator" { | 1006 | test "HeapAllocator" { |
| 1007 | if (builtin.os.tag == .windows) { | 1007 | if (builtin.os.tag == .windows) { |
| 1008 | // https://github.com/ziglang/zig/issues/13702 | ||
| 1009 | if (builtin.cpu.arch == .aarch64) return error.SkipZigTest; | ||
| 1010 | |||
| 1008 | var heap_allocator = HeapAllocator.init(); | 1011 | var heap_allocator = HeapAllocator.init(); |
| 1009 | defer heap_allocator.deinit(); | 1012 | defer heap_allocator.deinit(); |
| 1010 | const allocator = heap_allocator.allocator(); | 1013 | const allocator = heap_allocator.allocator(); |
lib/std/math/log2.zig+4| ... | @@ -1,4 +1,5 @@ | ... | @@ -1,4 +1,5 @@ |
| 1 | const std = @import("../std.zig"); | 1 | const std = @import("../std.zig"); |
| 2 | const builtin = @import("builtin"); | ||
| 2 | const math = std.math; | 3 | const math = std.math; |
| 3 | const expect = std.testing.expect; | 4 | const expect = std.testing.expect; |
| 4 | 5 | ||
| ... | @@ -42,6 +43,9 @@ pub fn log2(x: anytype) @TypeOf(x) { | ... | @@ -42,6 +43,9 @@ pub fn log2(x: anytype) @TypeOf(x) { |
| 42 | } | 43 | } |
| 43 | 44 | ||
| 44 | test "log2" { | 45 | test "log2" { |
| 46 | // https://github.com/ziglang/zig/issues/13703 | ||
| 47 | if (builtin.cpu.arch == .aarch64 and builtin.os.tag == .windows) return error.SkipZigTest; | ||
| 48 | |||
| 45 | try expect(log2(@as(f32, 0.2)) == @log2(0.2)); | 49 | try expect(log2(@as(f32, 0.2)) == @log2(0.2)); |
| 46 | try expect(log2(@as(f64, 0.2)) == @log2(0.2)); | 50 | try expect(log2(@as(f64, 0.2)) == @log2(0.2)); |
| 47 | comptime { | 51 | comptime { |