zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit de5908548c65944ce21c05bae274c03bb1188aa1 (tree)
parent 30efcf22d799c055d8ec987aa2f55a11c133b709
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 18 Jan 2022 15:53:23 -0700

disable failing atomicrmw test on llvm + aarch64

Diffstat:
Mtest/behavior/atomics.zig | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/test/behavior/atomics.zig b/test/behavior/atomics.zig @@ -115,6 +115,13 @@ fn test_u128_cmpxchg() !void { var a_global_variable = @as(u32, 1234); test "cmpxchg on a global variable" { + if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and + builtin.cpu.arch == .aarch64) + { + // https://github.com/ziglang/zig/issues/10627 + return error.SkipZigTest; + } + _ = @cmpxchgWeak(u32, &a_global_variable, 1234, 42, .Acquire, .Monotonic); try expect(a_global_variable == 42); } @@ -153,6 +160,12 @@ fn testAtomicStore() !void { } test "atomicrmw with floats" { + if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and + builtin.cpu.arch == .aarch64) + { + // https://github.com/ziglang/zig/issues/10627 + return error.SkipZigTest; + } try testAtomicRmwFloat(); comptime try testAtomicRmwFloat(); }