()
| 239 | |
| 240 | #[test] |
| 241 | fn test_clear() { |
| 242 | let mut set = KernelSigSet::empty(); |
| 243 | for sig in sigs() { |
| 244 | set.insert(sig); |
| 245 | } |
| 246 | |
| 247 | set.clear(); |
| 248 | |
| 249 | for sig in sigs() { |
| 250 | assert!(!set.contains(sig)); |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | // io_uring libraries assume that libc's `sigset_t` matches the layout |
| 255 | // of the Linux kernel's `kernel_sigset_t`. Test that rustix's layout |