]> granicus.if.org Git - procps-ng/commitdiff
Fix pmap -x test in when sizeof(KLONG) != 8
authorGilles Espinasse <g.esp@free.fr>
Tue, 8 May 2012 13:01:53 +0000 (15:01 +0200)
committerCraig Small <csmall@enc.com.au>
Tue, 8 May 2012 12:55:23 +0000 (22:55 +1000)
-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>
testsuite/pmap.test/pmap.exp

index 343e5242d102ddb445799a3983e4a157c7e36452..0917f1971c46da530d2d74baef94c5e899f88fea 100644 (file)
@@ -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