]> granicus.if.org Git - procps-ng/commit
slabtop check has optional spaces at start of line
authorCraig Small <csmall@enc.com.au>
Sun, 4 Dec 2011 11:08:23 +0000 (22:08 +1100)
committerCraig Small <csmall@enc.com.au>
Sun, 4 Dec 2011 11:08:23 +0000 (22:08 +1100)
commitdb602e1d44392b8f0cabf688277fd1d52a3dc5f7
treeb6eaf33c380bbae0c7fa20f060be473edf6956aa
parent52773412782fa3506a9016ca5a2340e327ef9016
slabtop check has optional spaces at start of line

There is a race condition between expect script consuming the output
from slabtop. There were a sequences of lines that looked like
^\d+ ... \s*
with the last \s* consuming the first space on the start of the line.
However if the line takes too long to print, then expect stops there and
the space at the start of the subsquent line does not match.

The solution is a \s* at the start ofthe line.
testsuite/slabtop.test/slabtop.exp