diff options
author | Alfredo Esteban <aedelatorre@gmail.com> | 2012-08-18 02:20:27 +0200 |
---|---|---|
committer | Craig Small <csmall@enc.com.au> | 2012-08-29 16:47:51 +1000 |
commit | f12277c74d591245767d77badb6bb6af91335656 (patch) | |
tree | 5cb71fff0f4389ed1dfd76011a1ea2a42b89b0ac /testsuite/pgrep.test | |
parent | 00d7d4e37abdf918b62d266086cfe26f61574c2f (diff) | |
download | procps-ng-f12277c74d591245767d77badb6bb6af91335656.tar.gz |
Debian Bug report #526355
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526355
Flag -f doesn't modify output anymore.
There is a new flag -a to show full command line processes.
Signed-off-by: Alfredo Esteban <aedelatorre@gmail.com>
Diffstat (limited to 'testsuite/pgrep.test')
-rw-r--r-- | testsuite/pgrep.test/pgrep.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/pgrep.test/pgrep.exp b/testsuite/pgrep.test/pgrep.exp index 0ec52c3..0cb6db7 100644 --- a/testsuite/pgrep.test/pgrep.exp +++ b/testsuite/pgrep.test/pgrep.exp @@ -51,6 +51,10 @@ set test "pgrep with process name" spawn $pgrep -l $testproc_comm expect_pass "$test" "^$testproc1_pid\\s+$testproc_comm\\s+$testproc2_pid\\s+$testproc_comm\\s*$" +set test "pgrep with full command line" +spawn $pgrep -a $testproc_comm +expect_pass "$test" "^$testproc1_pid\\s+$testproc_path\\s+$sleep_time\\s+$testproc2_pid\\s+$testproc_path\\s+$sleep_time\\s*$" + set test "pgrep find newest test pid" spawn $pgrep -n $testproc_comm expect_pass "$test" "^$testproc2_pid\\s*$" |