| ... | @@ -566,7 +566,7 @@ test "getrlimit and setrlimit" { | ... | @@ -566,7 +566,7 @@ test "getrlimit and setrlimit" { |
| 566 | } | 566 | } |
| 567 | | 567 | |
| 568 | test "sigrtmin/max" { | 568 | test "sigrtmin/max" { |
| 569 | if (native_os == .wasi or native_os == .windows or native_os.isDarwin()) { | 569 | if (native_os == .wasi or native_os == .windows or native_os.isDarwin() or native_os == .openbsd) { |
| 570 | return error.SkipZigTest; | 570 | return error.SkipZigTest; |
| 571 | } | 571 | } |
| 572 | | 572 | |
| ... | @@ -598,7 +598,9 @@ fn reserved_signo(i: usize) bool { | ... | @@ -598,7 +598,9 @@ fn reserved_signo(i: usize) bool { |
| 598 | if (native_os.isDarwin()) return false; | 598 | if (native_os.isDarwin()) return false; |
| 599 | if (!builtin.link_libc) return false; | 599 | if (!builtin.link_libc) return false; |
| 600 | const max = if (native_os == .netbsd) 32 else 31; | 600 | const max = if (native_os == .netbsd) 32 else 31; |
| 601 | return i > max and i < posix.sigrtmin(); | 601 | if (i > max) return true; |
| | 602 | if (native_os == .openbsd) return false; // no RT signals |
| | 603 | return i < posix.sigrtmin(); |
| 602 | } | 604 | } |
| 603 | | 605 | |
| 604 | test "sigset add/del" { | 606 | test "sigset add/del" { |