Commit 3b892f4316
2022-11-29 21:08:57
1 parent
fa30458lib/std/math/log2.zig
@@ -1,4 +1,5 @@
const std = @import("../std.zig");
+const builtin = @import("builtin");
const math = std.math;
const expect = std.testing.expect;
@@ -42,6 +43,9 @@ pub fn log2(x: anytype) @TypeOf(x) {
}
test "log2" {
+ // https://github.com/ziglang/zig/issues/13703
+ if (builtin.cpu.arch == .aarch64 and builtin.os.tag == .windows) return error.SkipZigTest;
+
try expect(log2(@as(f32, 0.2)) == @log2(0.2));
try expect(log2(@as(f64, 0.2)) == @log2(0.2));
comptime {
lib/std/heap.zig
@@ -1005,6 +1005,9 @@ test "PageAllocator" {
test "HeapAllocator" {
if (builtin.os.tag == .windows) {
+ // https://github.com/ziglang/zig/issues/13702
+ if (builtin.cpu.arch == .aarch64) return error.SkipZigTest;
+
var heap_allocator = HeapAllocator.init();
defer heap_allocator.deinit();
const allocator = heap_allocator.allocator();