libvirt/tests
Eric Blake 03e0ec10b4 nodeinfo: deal with offline cpus in a node
Commit 80533ca forgot to think about offline cpus.  When a node
cpu is offline, then its topology/ subdirectory is not present,
leading to spurious error messages leaked to the user such as:

libvir:  error : cannot open /home/dummy/libvirt/tests/nodeinfodata/linux-nodeinfo-sysfs-test-6/node/node0/cpu7/topology/physical_package_id: No such file or directory

Fix that, as well as test it; the test data is gathered from a
machine with one NUMA node, hyperthreading, and with 2 of the
8 cpus offline.

* src/nodeinfo.c (virNodeParseNode): Don't parse topology of
offline cpus.
* tests/nodeinfotest.c (mymain): Run new test.
* tests/nodeinfodata/linux-nodeinfo-sysfs-test-6*: New data.
2012-07-18 17:11:42 -06:00
..
capabilityschemadata
commanddata command: avoid deadlock on EPIPE situation 2012-06-04 13:06:07 -06:00
confdata
cputestdata
domainschemadata openvz: support file system quota reporting 2012-05-24 11:35:02 +02:00
domainsnapshotxml2xmlin
domainsnapshotxml2xmlout
interfaceschemadata
lxcxml2xmldata numad: Always output 'placement' of <vcpu> 2012-05-08 16:57:37 -06:00
networkxml2argvdata
networkxml2xmlin
networkxml2xmlout
nodedevschemadata
nodeinfodata nodeinfo: deal with offline cpus in a node 2012-07-18 17:11:42 -06:00
nwfilterxml2xmlin nwfilter: Add support for ipset 2012-05-21 06:26:34 -04:00
nwfilterxml2xmlout nwfilter: Add support for ipset 2012-05-21 06:26:34 -04:00
qemuhelpdata tests: Refresh qemu-1.1.0 data 2012-06-05 15:44:40 +02:00
qemuxml2argvdata S390: Adding testcases for s390 2012-07-11 11:19:05 +02:00
qemuxml2xmloutdata Fix logic for assigning PCI addresses to USB2 companion controllers 2012-05-15 17:07:34 +01:00
qemuxmlnsdata
sexpr2xmldata numad: Always output 'placement' of <vcpu> 2012-05-08 16:57:37 -06:00
storagepoolxml2xmlin Add a sheepdog backend for the storage driver 2012-07-18 20:08:27 +01:00
storagepoolxml2xmlout Add a sheepdog backend for the storage driver 2012-07-18 20:08:27 +01:00
storagevolxml2xmlin Add a sheepdog backend for the storage driver 2012-07-18 20:08:27 +01:00
storagevolxml2xmlout Add a sheepdog backend for the storage driver 2012-07-18 20:08:27 +01:00
vmx2xmldata
xencapsdata
xmconfigdata
xml2sexprdata
xml2vmxdata
.valgrind.supp
capabilityschematest
commandhelper.c command: avoid deadlock on EPIPE situation 2012-06-04 13:06:07 -06:00
commandtest.c command: avoid deadlock on EPIPE situation 2012-06-04 13:06:07 -06:00
conftest.c
cpuset
cputest.c cpu: Improve error reporting on incompatible CPUs 2012-04-23 10:59:51 +02:00
define-dev-segfault
domainschematest
domainsnapshotschematest
domainsnapshotxml2xmltest.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
esxutilstest.c
eventtest.c
int-overflow
interfaceschematest
interfacexml2xmltest.c
jsontest.c
libvirtd-fail
libvirtd-pool Fix up "make check" 2009-10-07 12:18:13 +02:00
libvirtdconftest.c
lxcxml2xmltest.c
Makefile.am Add a sheepdog backend for the storage driver 2012-07-18 20:08:27 +01:00
networkschematest
networkxml2argvtest.c test: fix segfault in networkxml2argvtest 2012-04-05 07:04:43 -04:00
networkxml2xmltest.c
nodedevschematest
nodedevxml2xmltest.c
nodeinfotest.c nodeinfo: deal with offline cpus in a node 2012-07-18 17:11:42 -06:00
nwfilterschematest
nwfilterxml2xmltest.c nwfilter: Add support for ipset 2012-05-21 06:26:34 -04:00
object-locking.ml
oomtrace.pl
openvzutilstest.c
openvzutilstest.conf
pkix_asn1_tab.c Add a test case for certificate validation 2011-07-22 15:18:32 +01:00
qemuargv2xmltest.c
qemuhelptest.c qemu: Add xhci support 2012-06-21 16:33:00 +02:00
qemumonitortest.c
qemuxml2argvtest.c S390: Adding testcases for s390 2012-07-11 11:19:05 +02:00
qemuxml2xmltest.c tests: add ich6 codec type test to qemuxml2argv-sound-device 2012-05-17 11:43:35 -06:00
qemuxmlnstest.c qemu: Change tests to use (modified) qemuDomainAssignAddresses 2012-07-11 11:19:05 +02:00
read-bufsiz
read-non-seekable
reconnect.c
schematestutils.sh
seclabeltest.c Pass the virt driver name into security drivers 2012-05-16 10:05:46 +01:00
sexpr2xmltest.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
shunloadhelper.c
shunloadtest.c maint: include ignore-value in internal.h 2012-06-28 16:36:30 +02:00
sockettest.c
ssh.c
start
statstest.c
storagebackendsheepdogtest.c Add a sheepdog backend for the storage driver 2012-07-18 20:08:27 +01:00
storagepoolschematest
storagepoolxml2xmltest.c Add a sheepdog backend for the storage driver 2012-07-18 20:08:27 +01:00
storagevolschematest
storagevolxml2xmltest.c Add a sheepdog backend for the storage driver 2012-07-18 20:08:27 +01:00
test_conf.sh
test-lib.sh
testutils.c tests: back to short test names 2012-05-24 21:09:03 -06:00
testutils.h
testutilslxc.c
testutilslxc.h
testutilsqemu.c S390: Adding testcases for s390 2012-07-11 11:19:05 +02:00
testutilsqemu.h
testutilsxen.c
testutilsxen.h
undefine
utiltest.c
vcpupin
virauthconfigtest.c
virbuftest.c buf: support peeking at string contents 2012-06-11 09:21:27 -06:00
virdrivermoduletest.c Add test case for loading driver modules 2012-05-24 13:18:01 +01:00
virhashdata.h
virhashtest.c
virkeyfiletest.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
virnetmessagetest.c msg_buf_size is unsigned long not size_t 2012-06-10 20:43:30 +02:00
virnetsockettest.c
virnettlscontexttest.c
virsh-all
virsh-optparse
virsh-schedinfo
virsh-synopsis
virshtest.c
virt-aa-helper-test
virtimetest.c
viruritest.c
vmx2xmltest.c vmx: Better Workstation vmx handling 2012-02-24 11:53:23 +01:00
xencapstest.c
xmconfigtest.c
xml2sexprtest.c
xml2vmxtest.c