libvirt/tests
Eric Blake 2aa167cafd virdbus: don't force users to pass int for bool values
Use of an 'int' to represent a 'bool' value is confusing.  Just
because dbus made the mistake of cementing their 4-byte wire
format of dbus_bool_t into their API doesn't mean we have to
repeat the mistake.  With a little bit of finesse, we can
guarantee that we provide a large-enough value to the DBus
code, while still copying only the relevant one-byte bool
to the client code, and isolate the rest of our code base from
the DBus stupidity.

* src/util/virdbus.c (GET_NEXT_VAL): Add parameter.
(virDBusMessageIterDecode): Adjust all clients.
* src/util/virpolkit.c (virPolkitCheckAuth): Use nicer type.
* tests/virdbustest.c (testMessageSimple, testMessageStruct):
Test new behavior.

Signed-off-by: Eric Blake <eblake@redhat.com>
2014-11-19 08:20:39 -07:00
..
bhyvexml2argvdata drvbhyve: Use boot-order for grub-bhyve boot device 2014-11-13 15:40:48 +01:00
bhyvexml2xmloutdata
capabilityschemadata
commanddata command: test umask support 2014-09-03 09:36:13 -06:00
confdata
cputestdata Don't include non-migratable features in host-model 2014-09-05 12:45:19 +02:00
domaincapsschemadata domaincaps: Expose UEFI binary path, if it exists 2014-09-17 16:29:49 +02:00
domainconfdata
domainschemadata qemu: Automatically create NVRAM store 2014-09-10 09:38:07 +02:00
domainsnapshotxml2xmlin
domainsnapshotxml2xmlout
fchostdata/fc_host
interfaceschemadata
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata
networkxml2xmlin conf: add trustGuestRxFilters attribute to network and domain interface 2014-10-06 11:49:10 -04:00
networkxml2xmlout conf: add trustGuestRxFilters attribute to network and domain interface 2014-10-06 11:49:10 -04:00
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevschemadata
nodeinfodata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemucapabilitiesdata qemu: Add Qemu capability for bps_max and friends 2014-11-10 15:48:59 +01:00
qemucaps2xmldata
qemuhelpdata qemu: Don't try to parse -help for new QEMU 2014-11-13 21:25:50 +01:00
qemuhotplugtestdata tests: Add test cases for previous commit 2014-09-05 08:35:34 +02:00
qemumonitorjsondata
qemuxml2argvdata qemu: Add tests for new blkdeviotune arguments 2014-11-14 12:03:52 -05:00
qemuxml2xmloutdata cpu_conf: Allow specification of 'units' for @memory on numa nodes. 2014-11-10 14:55:45 +01:00
qemuxmlnsdata
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
sexpr2xmldata conf: Extend <loader/> and introduce <nvram/> 2014-09-10 09:38:07 +02:00
storagepoolschemadata
storagepoolxml2xmlin storage: Introduce 'managed' for the fchost parent 2014-11-12 10:18:28 -05:00
storagepoolxml2xmlout storage: Introduce 'managed' for the fchost parent 2014-11-12 10:18:28 -05:00
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata
virfiledata
virpcitestdata
virscsidata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata
xencapsdata
xmconfigdata conf: Extend <loader/> and introduce <nvram/> 2014-09-10 09:38:07 +02:00
xml2sexprdata
xml2vmxdata
.valgrind.supp
bhyvexml2argvmock.c bhyve: tests: fix build 2014-09-18 13:37:12 +04:00
bhyvexml2argvtest.c drvbhyve: Use boot-order for grub-bhyve boot device 2014-11-13 15:40:48 +01:00
bhyvexml2xmltest.c
capabilityschematest
commandhelper.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
commandtest.c command: test umask support 2014-09-03 09:36:13 -06:00
cpuset
cputest.c Don't include non-migratable features in host-model 2014-09-05 12:45:19 +02:00
define-dev-segfault
domaincapsschematest
domaincapstest.c Fix build in qemu_capabilities 2014-09-18 13:37:12 +04:00
domainconftest.c
domainschematest
domainsnapshotschematest
domainsnapshotxml2xmltest.c
esxutilstest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
eventtest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
fchosttest.c
fdstreamtest.c
int-overflow
interfaceschematest
interfacexml2xmltest.c
jsontest.c
libvirtd-fail
libvirtd-pool
libvirtdconftest.c cleanup spaces between parentheses and braces 2014-08-20 14:50:21 +02:00
lxcconf2xmltest.c
lxcxml2xmltest.c
Makefile.am Iface: disallow network tuning in session mode globally 2014-11-06 14:28:37 +01:00
metadatatest.c
networkschematest
networkxml2conftest.c
networkxml2firewalltest.c
networkxml2xmltest.c conf: net: Correctly switch how to format address fields 2014-08-21 15:55:07 +02:00
networkxml2xmlupdatetest.c
nodedevschematest
nodedevxml2xmltest.c
nodeinfotest.c
nwfilterebiptablestest.c
nwfilterschematest
nwfilterxml2firewalltest.c
nwfilterxml2xmltest.c
objecteventtest.c Resolve Coverity CHECKED_RETURN 2014-09-15 10:44:27 -04:00
objectlocking.ml
oomtrace.pl
openvzutilstest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
openvzutilstest.conf
pkix_asn1_tab.c
qemuagenttest.c qemu: use guest-fsfreeze-freeze-list command if mountpoints to freeze specified 2014-08-11 12:11:41 +02:00
qemuargv2xmltest.c Add new 'kvm' domain feature and ability to hide KVM signature 2014-08-26 10:41:24 +02:00
qemucapabilitiestest.c qemu: Add RDMA migration capabilities 2014-09-23 08:11:49 +02:00
qemucaps2xmltest.c
qemuhelptest.c qemu: Don't try to parse -help for new QEMU 2014-11-13 21:25:50 +01:00
qemuhotplugtest.c
qemumonitorjsontest.c qemu: Always set migration capabilities 2014-11-13 20:33:28 +01:00
qemumonitortest.c
qemumonitortestutils.c
qemumonitortestutils.h
qemuxml2argvmock.c numa: split util/ and conf/ and support non-contiguous nodesets 2014-11-06 15:13:55 +01:00
qemuxml2argvtest.c qemu: Add tests for new blkdeviotune arguments 2014-11-14 12:03:52 -05:00
qemuxml2xmltest.c qemu: Allow use of iothreads for virtio ccw disk definitions 2014-11-06 15:13:55 +01:00
qemuxmlnstest.c qemu: make advice from numad available when building commandline 2014-11-03 16:43:22 +01:00
read-bufsiz
read-non-seekable
reconnect.c
schematestutils.sh
scsihosttest.c
seclabeltest.c maint: use hanging curly braces 2014-09-04 15:18:43 -06:00
secretschematest
secretxml2xmltest.c
securityselinuxhelper.c
securityselinuxlabeltest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
securityselinuxtest.c
sexpr2xmltest.c xen: rename xenxs to xenconfig 2014-08-18 20:36:24 -06:00
shunloadhelper.c
shunloadtest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
sockettest.c conf: add check if migration_host is a localhost address 2014-10-15 09:25:33 +02:00
ssh.c
start
statstest.c
storagebackendsheepdogtest.c
storagepoolschematest
storagepoolxml2xmltest.c storage: Introduce 'managed' for the fchost parent 2014-11-12 10:18:28 -05:00
storagevolschematest
storagevolxml2argvtest.c
storagevolxml2xmltest.c
sysinfotest.c
test_conf.c test_conf: Resolve Coverity RESOURCE_LEAK 2014-09-03 15:00:19 -04:00
test_conf.sh
test-lib.sh
testutils.c maint: avoid static zero init in tests 2014-10-29 09:55:09 -06:00
testutils.h
testutilslxc.c
testutilslxc.h
testutilsqemu.c tests: Add test cases for previous commit 2014-09-05 08:35:34 +02:00
testutilsqemu.h
testutilsxen.c
testutilsxen.h
utiltest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
vboxsnapshotxmltest.c
vcpupin
viralloctest.c
viratomictest.c
virauthconfigtest.c
virbitmaptest.c bitmap: add virBitmapLastSetBit for finding the last bit position of bitmap 2014-11-04 07:03:36 +01:00
virbuftest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
vircaps2xmltest.c
vircapstest.c
vircgroupmock.c
vircgrouptest.c
vircryptotest.c
virdbustest.c virdbus: don't force users to pass int for bool values 2014-11-19 08:20:39 -07:00
virdrivermoduletest.c virdrivermoduletest: Test all the modules 2014-08-27 07:41:48 +02:00
virendiantest.c
virfiletest.c
virfirewalltest.c tests: Add more test suite mock helpers 2014-09-11 15:40:50 -06:00
virhashdata.h
virhashtest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
virhostdevtest.c maint: avoid static zero init in tests 2014-10-29 09:55:09 -06:00
viridentitytest.c
viriscsitest.c
virkeycodetest.c
virkeyfiletest.c
virkmodtest.c
virlockspacetest.c
virlogtest.c
virmock.h tests: Add more test suite mock helpers 2014-09-11 15:40:50 -06:00
virmockdbus.c
virnetdevbandwidthmock.c Iface: disallow network tuning in session mode globally 2014-11-06 14:28:37 +01:00
virnetdevbandwidthtest.c Iface: disallow network tuning in session mode globally 2014-11-06 14:28:37 +01:00
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c
virnetsockettest.c
virnettlscontexttest.c tests: force FIPS testing mode with new enough GNU TLS versions 2014-09-04 11:56:39 +02:00
virnettlshelpers.c
virnettlshelpers.h
virnettlssessiontest.c tests: force FIPS testing mode with new enough GNU TLS versions 2014-09-04 11:56:39 +02:00
virpcimock.c
virpcitest.c
virpolkittest.c Convert polkit code to use DBus API instead of CLI helper 2014-09-24 15:29:22 +01:00
virportallocatortest.c maint: avoid static zero init in tests 2014-10-29 09:55:09 -06:00
virscsitest.c maint: avoid static zero init in tests 2014-10-29 09:55:09 -06:00
virsh-all
virsh-optparse
virsh-schedinfo
virsh-synopsis
virsh-undefine
virsh-uriprecedence
virshtest.c
virstoragetest.c storage: Fix crash when parsing backing store URI with schema 2014-10-29 17:10:42 +01:00
virstringtest.c test: Add test to verify helpers used for backing file name parsing 2014-10-29 17:10:42 +01:00
virsystemdtest.c tests: Add more test suite mock helpers 2014-09-11 15:40:50 -06:00
virt-aa-helper-test
virtimetest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
viruritest.c test: Add test to verify helpers used for backing file name parsing 2014-10-29 17:10:42 +01:00
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00
xencapstest.c
xmconfigtest.c xen: rename xenxs to xenconfig 2014-08-18 20:36:24 -06:00
xml2sexprtest.c xen: rename xenxs to xenconfig 2014-08-18 20:36:24 -06:00
xml2vmxtest.c Remove unnecessary curly brackets in tests/ 2014-11-14 17:13:36 +01:00