Skip to content

Commit fd4fcef

Browse files
committed
test: Disable some varargs behavior tests on sparc.
ziglang#23718
1 parent d7e8337 commit fd4fcef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/behavior/var_args.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ test "simple variadic function" {
106106
}
107107
if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO
108108
if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350
109+
if (builtin.cpu.arch.isSPARC() and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23718
109110

110111
const S = struct {
111112
fn simple(...) callconv(.c) c_int {
@@ -200,6 +201,7 @@ test "variadic functions" {
200201
}
201202
if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO
202203
if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350
204+
if (builtin.cpu.arch.isSPARC() and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23718
203205

204206
const S = struct {
205207
fn printf(list_ptr: *std.ArrayList(u8), format: [*:0]const u8, ...) callconv(.c) void {
@@ -245,6 +247,7 @@ test "copy VaList" {
245247
}
246248
if (builtin.cpu.arch == .x86_64 and builtin.os.tag == .windows) return error.SkipZigTest; // TODO
247249
if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350
250+
if (builtin.cpu.arch.isSPARC() and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23718
248251

249252
const S = struct {
250253
fn add(count: c_int, ...) callconv(.c) c_int {
@@ -282,6 +285,7 @@ test "unused VaList arg" {
282285
return error.SkipZigTest; // TODO
283286
}
284287
if (builtin.cpu.arch == .s390x and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21350
288+
if (builtin.cpu.arch.isSPARC() and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23718
285289

286290
const S = struct {
287291
fn thirdArg(dummy: c_int, ...) callconv(.c) c_int {

0 commit comments

Comments
 (0)