| ... | @@ -889,10 +889,10 @@ test "sigset empty/full" { | ... | @@ -889,10 +889,10 @@ test "sigset empty/full" { |
| 889 | // Some signals (i.e., 32 - 34 on glibc/musl) are not allowed to be added to a | 889 | // Some signals (i.e., 32 - 34 on glibc/musl) are not allowed to be added to a |
| 890 | // sigset by the C library, so avoid testing them. | 890 | // sigset by the C library, so avoid testing them. |
| 891 | fn reserved_signo(i: usize) bool { | 891 | fn reserved_signo(i: usize) bool { |
| 892 | if (native_os == .macos) { | 892 | if (native_os == .macos) return false; |
| 893 | return false; | 893 | if (!builtin.link_libc) return false; |
| 894 | } | 894 | const max = if (native_os == .netbsd) 32 else 31; |
| 895 | return builtin.link_libc and (i >= 32 and i < posix.sigrtmin()); | 895 | return i > max and i < posix.sigrtmin(); |
| 896 | } | 896 | } |
| 897 | | 897 | |
| 898 | test "sigset add/del" { | 898 | test "sigset add/del" { |