authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-29 21:08:57+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-11-30 00:26:40+01:00
log648579b33060888316649b0d42cd03dd52ecf589
treeaba13ec948ad69b0a0ea70abe4de8e81bf4ee217
parent37a9b78bc175209110f1b7b957664106f37c7088

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 {