mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.posix.test: fix sigset tests on openbsd (no rt signals)
This commit is contained in:
parent
26751fb31a
commit
e90c639fde
1 changed files with 4 additions and 2 deletions
|
|
@ -521,7 +521,7 @@ test "getrlimit and setrlimit" {
|
||||||
}
|
}
|
||||||
|
|
||||||
test "sigrtmin/max" {
|
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;
|
return error.SkipZigTest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -553,7 +553,9 @@ fn reserved_signo(i: usize) bool {
|
||||||
if (native_os.isDarwin()) return false;
|
if (native_os.isDarwin()) return false;
|
||||||
if (!builtin.link_libc) return false;
|
if (!builtin.link_libc) return false;
|
||||||
const max = if (native_os == .netbsd) 32 else 31;
|
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" {
|
test "sigset add/del" {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue