vmstat: slabinfo (-m option) test disabled if not readable
The dejagnu tests for slabtop are skipped when "/proc/slabinfo" is unreadable due to permissions. This commit provides the same check for vmstat under its -m (slabinfo) option.
This commit is contained in:
parent
58a6c89cd1
commit
3ad8fd56ed
@ -17,10 +17,13 @@ set test "vmstat fork option"
|
||||
spawn $vmstat -f
|
||||
expect_pass "$test" "^\\s+\\d+ forks\\s*$"
|
||||
|
||||
if { [ file readable "/proc/slabinfo" ] == 0 } {
|
||||
unsupported "slabinfo (-m option) test disabled as /proc/slabinfo is unreadable"
|
||||
} else {
|
||||
set test "vmstat slabinfo (-m option)"
|
||||
spawn $vmstat -m
|
||||
expect_pass "$test" "^Cache\\s+Num\\s+Total\\s+Size\\s+Pages\\s+\(\[\(\)A-Za-z0-9_-\]+\\s+\\d+\\s+\\d+\\s+\\d+\\s+\\d+\\s*\){1,}"
|
||||
|
||||
}
|
||||
|
||||
set test "vmstat disk information (-d option)"
|
||||
spawn $vmstat -d
|
||||
|
Loading…
Reference in New Issue
Block a user