summaryrefslogtreecommitdiff
path: root/testsuite/pwdx.test
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2012-02-09 21:18:14 +0100
committerSami Kerola <kerolasa@iki.fi>2012-02-11 21:42:21 +0100
commit4d8f9522a7cdada686dce1769d2f397b5c6488ee (patch)
tree554d6ffe68d74e3fdee66054f866882bcbfc3fe4 /testsuite/pwdx.test
parentce1410a51a624a91816fcc8c232c8a4d60b09638 (diff)
downloadprocps-ng-4d8f9522a7cdada686dce1769d2f397b5c6488ee.tar.gz
tests: fix dejagnu pwdx and vmstat checks
The pwdx check expected error message, which where in use for only short period of time. The old message was put in place in commit 9d47cb0c38137581a46951fb7c6fa2a1dc8c24cf The vmstat issue was triggered by 'sr0' cdrom device, which gives following unexpected output. Fix simply ignores partitions which has zero activity. Besides such partitions probably would not apply as good candidate of -p option anyway. $ vmstat -p sr0 Partition was not found Reported-By: Moritz Muehlenhoff <jmm@debian.org> Bug-Debian: http://bugs.debian.org/656508 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'testsuite/pwdx.test')
-rw-r--r--testsuite/pwdx.test/pwdx.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/pwdx.test/pwdx.exp b/testsuite/pwdx.test/pwdx.exp
index 0ca0b15..b86631f 100644
--- a/testsuite/pwdx.test/pwdx.exp
+++ b/testsuite/pwdx.test/pwdx.exp
@@ -8,7 +8,7 @@ expect_pass "$test" "^\\s*Usage:\\s+\(lt-\)\?pwdx \\\[options\\\] pid\.\.\."
# Run pwdx with pid 0 which is invalid
set test "pwdx pid 0 should be invalid"
spawn $pwdx 0
-expect_pass "$test" "^0: No such process"
+expect_pass "$test" "\(lt-\)\?pwdx\: invalid process id\: 0"
# Run pwdx with existing pid
set test "pwdx finds sleep in cwd"