Skip to content

Commit 8d88f12

Browse files
committed
Hopefully fix test_alarm and test_poll in CI
It looks like the SIGALARM is interrupting poll(2)
1 parent 0fa7948 commit 8d88f12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_poll.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use nix::unistd::{write, pipe, close};
33

44
#[test]
55
fn test_poll() {
6+
let _m = ::SIGNAL_MTX.lock().expect("Mutex got poisoned by another test");
7+
68
let (r, w) = pipe().unwrap();
79
let mut fds = [PollFd::new(r, PollFlags::POLLIN)];
810

0 commit comments

Comments
 (0)