tests: add pkill test to catch signal option order regressions
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
e730a6b4dc
commit
af271cf8c8
@ -24,6 +24,10 @@ set test "pkill find both test pids"
|
|||||||
spawn $pkill -0 -e $testproc_comm
|
spawn $pkill -0 -e $testproc_comm
|
||||||
expect_pass "$test" "^$testproc_comm killed \\(pid $testproc1_pid\\)\\s+$testproc_comm killed \\(pid $testproc2_pid\\)\\s*$"
|
expect_pass "$test" "^$testproc_comm killed \\(pid $testproc1_pid\\)\\s+$testproc_comm killed \\(pid $testproc2_pid\\)\\s*$"
|
||||||
|
|
||||||
|
set test "pkill signal option order"
|
||||||
|
spawn $pkill -e $testproc_comm -0
|
||||||
|
expect_pass "$test" "^$testproc_comm killed \\(pid $testproc1_pid\\)\\s+$testproc_comm killed \\(pid $testproc2_pid\\)\\s*$"
|
||||||
|
|
||||||
# In Debian only
|
# In Debian only
|
||||||
#set test "pkill counts 2 test pids"
|
#set test "pkill counts 2 test pids"
|
||||||
#spawn $pkill -c $testproc
|
#spawn $pkill -c $testproc
|
||||||
|
Loading…
Reference in New Issue
Block a user