diff options
author | Sami Kerola <kerolasa@iki.fi> | 2012-06-24 14:40:02 +0200 |
---|---|---|
committer | Sami Kerola <kerolasa@iki.fi> | 2012-06-24 14:40:02 +0200 |
commit | af271cf8c8e561c906ab4d9a570a1b68835a4323 (patch) | |
tree | 6bdb21c641e9a84e5eab81b1cf9d94d4d1a842ec | |
parent | e730a6b4dca050a68dd9827e7267748b2dfe025d (diff) | |
download | procps-ng-af271cf8c8e561c906ab4d9a570a1b68835a4323.tar.gz |
tests: add pkill test to catch signal option order regressions
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r-- | testsuite/pkill.test/pkill.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/pkill.test/pkill.exp b/testsuite/pkill.test/pkill.exp index d14d1a9..b9f5ddd 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 |