diff options
author | Gilles Espinasse <g.esp@free.fr> | 2012-05-08 15:01:53 +0200 |
---|---|---|
committer | Craig Small <csmall@enc.com.au> | 2012-05-08 22:55:23 +1000 |
commit | be1bb68c55f82392e14c67a8d56c277af89bbb4f (patch) | |
tree | 3a4f81342d375388a069d2ddde81173e243c2da2 | |
parent | e6bc6297564c953edfe7c342da8a6e5ca9436156 (diff) | |
download | procps-ng-be1bb68c55f82392e14c67a8d56c277af89bbb4f.tar.gz |
Fix pmap -x test in when sizeof(KLONG) != 8
-x test should have work only in sizeof(KLONG) == 8 case where 3 numbers are printed
In sizeof(KLONG) != 8, only one number and three '-' are printed, so allow '-' character
I am compiling x86 32bits userspace, so I should be in (sizeof(KLONG) != 8) case
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
-rw-r--r-- | testsuite/pmap.test/pmap.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/pmap.test/pmap.exp b/testsuite/pmap.test/pmap.exp index 343e524..0917f19 100644 --- a/testsuite/pmap.test/pmap.exp +++ b/testsuite/pmap.test/pmap.exp @@ -15,7 +15,7 @@ set pmap_ext_items "\(\[0-9a-f\]+\\s+\\d+\\s+\\d+\\s+\\d+ \[rwx-\]{5}\\s+\\S+\[^ set pmap_std_footer "total\\s+\\d+K\\s*\$" set pmap_device_footer "mapped:\\s+\\d+K\\s+writeable\/private:\\s+\\d+K\\s+shared:\\s+\\d+K\\s*\$" -set pmap_ext_footer "\[ -\]+\\s+total kB\\s+\\d+\\s+\\d+\\s+\\d+\\s*\$" +set pmap_ext_footer "\[ -\]+\\s+total kB\\s+\\d+(\\s+\[\\d-\]+){2,3}\\s*\$" set test "pmap with no arguments" spawn $pmap |