mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 16:45:27 +00:00
libstd: skip problematic tests on aarch64-windows
This commit is contained in:
parent
37a9b78bc1
commit
648579b330
@ -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();
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user