]> granicus.if.org Git - procps-ng/commit
build-sys: Handle zero length diskstats in tests
authorCraig Small <csmall@dropbear.xyz>
Mon, 29 Mar 2021 11:23:03 +0000 (22:23 +1100)
committerCraig Small <csmall@dropbear.xyz>
Mon, 29 Mar 2021 11:23:03 +0000 (22:23 +1100)
commitfc97889b2d8e0a96b578fa5b97c6ef649682adb9
tree978b31ff8ad7f977010402faa51604126e35b2f7
parent3dd1661a3d91671ca6c977c2e514f47d807be79d
build-sys: Handle zero length diskstats in tests

vmstat -d testsuite will fail if your /proc/diskstats is present
but zero length. While this seems buggy behaviour from lxcfs, its
there and its a simple matter to test for it and skip those tests
if we are run on a zero length /proc/diskstats system.
testsuite/vmstat.test/vmstat.exp