summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorJan Rybar <jrybar@redhat.com>2017-01-26 16:52:23 +1100
committerCraig Small <csmall@enc.com.au>2017-01-26 16:52:23 +1100
commit9252a04eae9bc0da12c96b7e86b1000e7952c6e4 (patch)
treed00462adcdd5b68d8b66d2d58319fa3269606d0e /testsuite
parent2598e9f2ce39c93ebf55f664454d3bea919ed4e0 (diff)
downloadprocps-ng-9252a04eae9bc0da12c96b7e86b1000e7952c6e4.tar.gz
pgrep: warning about 15+ chars name only if zero matches found
This avoids situations where longer regex which matches short-named proc is used. Test for pgrep updated. This is the newlib update of 5d12be1b7e8cc690a4d8778754aae5db4c07db2b Signed-off-by: Craig Small <csmall@enc.com.au>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/pgrep.test/pgrep.exp5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuite/pgrep.test/pgrep.exp b/testsuite/pgrep.test/pgrep.exp
index 0e9084a..66dd4c7 100644
--- a/testsuite/pgrep.test/pgrep.exp
+++ b/testsuite/pgrep.test/pgrep.exp
@@ -118,10 +118,9 @@ set test "pgrep does not match substring with exact"
spawn $pgrep -x $testproc_trim
expect_blank $test
-set test "pgrep with long match gives warning"
+set test "pgrep with long non-matching pattern gives warning"
spawn $pgrep gnome-session-bi
-expect_pass "$test" "pattern that contains program name longer than 15 characters will result in zero matches"
-
+expect_pass "$test" "pattern that searches for process name longer than 15 characters will result in zero matches"
# Cleanup
kill_testproc