authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-29 21:08:57+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-09 14:46:14-07:00
log3b892f4316fd7d74218475839abc75c777b9b3db
treea613a1ee955b73551e0c25cff8d9e4c000e43952
parentfa30458e84ff2d6dad53dd39d4ab818f75f747f7

libstd: skip problematic tests on aarch64-windows


2 files changed, 7 insertions(+), 0 deletions(-)

lib/std/heap.zig+3
......@@ -1005,6 +1005,9 @@ test "PageAllocator" {
10051005
10061006test "HeapAllocator" {
10071007 if (builtin.os.tag == .windows) {
1008 // https://github.com/ziglang/zig/issues/13702
1009 if (builtin.cpu.arch == .aarch64) return error.SkipZigTest;
1010
10081011 var heap_allocator = HeapAllocator.init();
10091012 defer heap_allocator.deinit();
10101013 const allocator = heap_allocator.allocator();
lib/std/math/log2.zig+4
......@@ -1,4 +1,5 @@
11const std = @import("../std.zig");
2const builtin = @import("builtin");
23const math = std.math;
34const expect = std.testing.expect;
45
......@@ -42,6 +43,9 @@ pub fn log2(x: anytype) @TypeOf(x) {
4243}
4344
4445test "log2" {
46 // https://github.com/ziglang/zig/issues/13703
47 if (builtin.cpu.arch == .aarch64 and builtin.os.tag == .windows) return error.SkipZigTest;
48
4549 try expect(log2(@as(f32, 0.2)) == @log2(0.2));
4650 try expect(log2(@as(f64, 0.2)) == @log2(0.2));
4751 comptime {