From af271cf8c8e561c906ab4d9a570a1b68835a4323 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 24 Jun 2012 14:40:02 +0200 Subject: [PATCH] tests: add pkill test to catch signal option order regressions Signed-off-by: Sami Kerola --- testsuite/pkill.test/pkill.exp | 4 ++++ 1 file changed, 4 insertions(+) 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