Le 03/04/2013 00:26, Bruce Dubbs a écrit :
> Pierre Labastie wrote:
>> Le 02/04/2013 19:39, Bruce Dubbs a écrit :
>>> I was meaning to bring this up again. I get
>>>
>>> Running ./pmap.test/pmap.exp ...
>>> FAIL: pmap X with unreachable process
>>> FAIL: pmap XX with unreachable process
> That means that it can't find /proc/1. If /proc is mounted, that should
> always be there, e.g. `cat /proc/1/cmdline`.
>
>
>>> vmstat gives me:
>>>
>>> # of expected passes 6
>> I have not been able to reproduce the /proc/diskstats beginning with
>> sr0. Only in that case does the vmstat test fail.
> Isn't sr0 a cdrom? On my system, I have:
>
> 11 0 sr0 0 0 0 0 0 0 0 0 0 0 0
>
> Major dev#, minor dev#, name, counters...
>
>
The failure in the test depends on the ordering of the the
/proc/diskstats table. This morning, I had:
-------------------------------
pierre@debian32-virt:~$ cat /proc/diskstats
2 0 fd0 0 0 0 0 0 0 0 0 0 0 0
11 0 sr0 19 0 152 136 0 0 0 0 0 136 136
8 0 sda 32783 8723 2567928 84792 336771 8561249 71767606
11478240 0 1477316 11607988
8 1 sda1 559 2108 19320 1148 4 0 20 0 0 956 1148
8 2 sda2 161 31 1536 172 0 0 0 0 0 172 172
[...]
-------------------------------
And the test failed with:
Running ./vmstat.test/vmstat.exp ...
FAIL: vmstat partition (using sr0)
=== vmstat Summary ===
# of expected passes 5
# of unexpected failures 1
/sources/procps-ng-3.3.7/vmstat version 3.3.7
-------------------------------
The problem is that ' 11 0 sr0 19 0 152 136 0 0 0 0 0 136 136'
matches
'\\s+\\d+\\s+\\d+\\s+\(\[a-z\]+\\d+\)\\s+\(\[0-9\]\[0-9\]+\)' (in
vmstat.exp).
Using:
sed -i 's@\\\[a-z\\\]+@\\[a-z\\]\\[a-z\\]\\[a-z\\]@'
testsuite/vmstat.test/vmstat.exp
does the trick
Pierre
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page