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>
This commit is contained in:
Alfredo Esteban
2012-08-18 02:20:27 +02:00
committed by Craig Small
parent 00d7d4e37a
commit f12277c74d
4 changed files with 51 additions and 25 deletions

View File

@@ -111,11 +111,11 @@ proc expect_table_dsc { test match_header match_item } {
}
proc make_testproc { } {
global testproc_path testproc_comm testproc1_pid testproc2_pid sleep_time
# Time to run the whole job
set sleep_time 300
global testproc_path testproc_comm testproc1_pid testproc2_pid
set testproc_path [ exec mktemp -u ]
set sleep_path [ exec which sleep ]
exec ln -s $sleep_path $testproc_path

View File

@@ -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*$"