v1:
https://www.redhat.com/archives/libvir-list/2014-January/msg00951.html
v2:
https://www.redhat.com/archives/libvir-list/2014-January/msg00992.html
use ticks instead of nsecs in test data
v3:
use nodeinfopriv.h instead of disgusting extern declarations
touch up the impossible error message
Ján Tomko (4):
Move test-local declarations to nodeinfopriv.h
Add test for linuxNodeGetCPUStats
Simplify linuxNodeGetCPUStats
Reword error message for oversized cpu time fields
src/Makefile.am | 2 +-
src/libvirt_linux.syms | 1 +
src/nodeinfo.c | 87 ++++++----------
src/nodeinfopriv.h | 38 +++++++
tests/nodeinfodata/linux-cpustat-24cpu.out | 150 ++++++++++++++++++++++++++++
tests/nodeinfodata/linux-cpustat-24cpu.stat | 25 +++++
tests/nodeinfotest.c | 130 +++++++++++++++++++++++-
7 files changed, 373 insertions(+), 60 deletions(-)
create mode 100644 src/nodeinfopriv.h
create mode 100644 tests/nodeinfodata/linux-cpustat-24cpu.out
create mode 100644 tests/nodeinfodata/linux-cpustat-24cpu.stat
--
1.8.3.2