libstd: skip problematic tests on aarch64-windows

This commit is contained in:
Jakub Konka 2022-11-29 21:08:57 +01:00
parent 37a9b78bc1
commit 648579b330
2 changed files with 7 additions and 0 deletions

View File

@ -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();

View File

@ -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 {