From 215b250e6b94edf8c00606ab73a9e93dbd80c150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 1 Dec 2025 18:30:05 +0100 Subject: [PATCH] std.posix.test: fix sigset tests on openbsd (no rt signals) --- lib/std/posix/test.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/std/posix/test.zig b/lib/std/posix/test.zig index bc8d45527163d08fd8503766d8db569cc74bfab8..9cb08f15d8f2897bc2c3d1b6ffe6effe1197ea2f 100644 --- a/lib/std/posix/test.zig +++ b/lib/std/posix/test.zig @@ -566,7 +566,7 @@ test "getrlimit and setrlimit" { } test "sigrtmin/max" { - if (native_os == .wasi or native_os == .windows or native_os.isDarwin()) { + if (native_os == .wasi or native_os == .windows or native_os.isDarwin() or native_os == .openbsd) { return error.SkipZigTest; } @@ -598,7 +598,9 @@ fn reserved_signo(i: usize) bool { if (native_os.isDarwin()) return false; if (!builtin.link_libc) return false; const max = if (native_os == .netbsd) 32 else 31; - return i > max and i < posix.sigrtmin(); + if (i > max) return true; + if (native_os == .openbsd) return false; // no RT signals + return i < posix.sigrtmin(); } test "sigset add/del" { -- 2.54.0