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" {...@@ -1005,6 +1005,9 @@ test "PageAllocator" {
10051005
1006test "HeapAllocator" {1006test "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 @@
1const std = @import("../std.zig");1const std = @import("../std.zig");
2const builtin = @import("builtin");
2const math = std.math;3const math = std.math;
3const expect = std.testing.expect;4const expect = std.testing.expect;
45
...@@ -42,6 +43,9 @@ pub fn log2(x: anytype) @TypeOf(x) {...@@ -42,6 +43,9 @@ pub fn log2(x: anytype) @TypeOf(x) {
42}43}
4344
44test "log2" {45test "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 {