]> granicus.if.org Git - procps-ng/commitdiff
tests: add pkill test to catch signal option order regressions
authorSami Kerola <kerolasa@iki.fi>
Sun, 24 Jun 2012 12:40:02 +0000 (14:40 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sun, 24 Jun 2012 12:40:02 +0000 (14:40 +0200)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
testsuite/pkill.test/pkill.exp

index d14d1a9e187624c07a6b466ba5f83fd0c473cb11..b9f5ddd2d1f88956a0af4499dcf9bdad78b7d73a 100644 (file)
@@ -24,6 +24,10 @@ set test "pkill find both test pids"
 spawn $pkill -0 -e $testproc_comm
 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
 #set test "pkill counts 2 test pids"
 #spawn $pkill -c $testproc