authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-04-28 12:01:46+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-01 21:34:53+02:00
loga09c1d91ede780beff8a196f16f34f8d7a3224c9
treef588e7a8ed2a09eb8abad98dfcf34fcbba5d2d48
parent47e46b58d258f03af3082cf30f313bab5337360f
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test: Disable some varargs behavior tests on sparc.

https://github.com/ziglang/zig/issues/23718

1 files changed, 4 insertions(+), 0 deletions(-)

test/behavior/var_args.zig+4
......@@ -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 {