From: Sami Kerola Date: Sun, 24 Jun 2012 12:40:02 +0000 (+0200) Subject: tests: add pkill test to catch signal option order regressions X-Git-Tag: v3.3.4~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af271cf8c8e561c906ab4d9a570a1b68835a4323;p=procps-ng tests: add pkill test to catch signal option order regressions Signed-off-by: Sami Kerola --- diff --git a/testsuite/pkill.test/pkill.exp b/testsuite/pkill.test/pkill.exp index d14d1a9e..b9f5ddd2 100644 --- a/testsuite/pkill.test/pkill.exp +++ b/testsuite/pkill.test/pkill.exp @@ -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