Skip to content

Commit d77325f

Browse files
committed
Add test for killpg
1 parent 17bd25c commit d77325f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/sys/test_signal.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ fn test_kill_none() {
99
kill(getpid(), None).expect("Should be able to send signal to myself.");
1010
}
1111

12+
#[test]
13+
fn test_killpg_none() {
14+
killpg(getpgrp(), None).expect("Should be able to send signal to my process group.");
15+
}
16+
1217
#[test]
1318
fn test_old_sigaction_flags() {
1419
extern "C" fn handler(_: ::libc::c_int) {}

0 commit comments

Comments
 (0)