std.posix.test: fix sigset tests on openbsd (no rt signals)

This commit is contained in:
Alex Rønne Petersen 2025-12-01 18:30:05 +01:00
parent ad17f7b42a
commit bb9b451f2f
No known key found for this signature in database

View file

@ -521,7 +521,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;
}
@ -553,7 +553,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" {