libvirt/tests
Peter Krempa 690efb960f Switch away from virHashFree
Use 'g_clear_pointer(&ptr, g_hash_table_unref)' instead.

In few instances it allows us to also remove explicit clearing of
pointers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2021-12-01 13:53:12 +01:00
..
bhyveargv2xmldata
bhyvefirmwaredata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata
commanddata
cputestdata
domainbackupxml2xmlin
domainbackupxml2xmlout
domaincapsdata qemu: mock swtpm initialization in tests 2021-12-01 12:14:03 +00:00
domainconfdata
domainschemadata
fchostdata/fc_host
genericxml2xmlindata conf: introduce support for Fibre Channel VMID 2021-08-17 13:50:38 +02:00
genericxml2xmloutdata genericxml2xmltest: Modify cachetune test to include id 2021-07-20 16:43:46 +02:00
interfaceschemadata
libxlxml2domconfigdata
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata
networkxml2xmlin network: Allow adding DNS entries sharing hostname for multiple addreses 2021-07-16 14:50:57 +02:00
networkxml2xmlout network: Allow adding DNS entries sharing hostname for multiple addreses 2021-07-16 14:50:57 +02:00
networkxml2xmlupdatein
networkxml2xmlupdateout network: Allow adding DNS entries sharing hostname for multiple addreses 2021-07-16 14:50:57 +02:00
nodedevmdevctldata nodedev: Add tests for mdevctl autostart command 2021-09-14 14:24:07 -05:00
nodedevschemadata Add PCI VPD Capability Support 2021-10-21 17:34:04 +01:00
nodedevxml2xmlout Add PCI VPD Capability Support 2021-10-21 17:34:04 +01:00
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata qemublocktest: Add test for creating a qcow2 on top of an luks-encrypted qcow2 2021-08-20 15:43:17 +02:00
qemucapabilitiesdata tests: update QEMU and domain ppc64 capabilities for qemu 6.2 2021-11-12 13:44:42 -03:00
qemucaps2xmloutdata
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout
qemufirmwaredata
qemuhotplugtestcpus qemuhotplugtest: Remove tests for legacy cpu hotplug on x86 2021-11-01 16:14:53 +01:00
qemuhotplugtestdevices
qemuhotplugtestdomains tests: qemu: Remove 's390-ccw' machine type from fake capabilities 2021-09-23 14:48:51 +02:00
qemumemlockdata
qemumigparamsdata qemumigparamstest: Drop "unsupported" test case 2021-10-22 07:00:44 +02:00
qemumigrationcookiexmldata qemu: migration: Don't transfer 'allowReboot' flag 2021-08-25 15:32:44 +02:00
qemumonitorjsondata
qemusecuritydata
qemustatusxml2xmldata qemustatusxml2xmldata: backup-pull: Add private data for scratch image 2021-11-04 10:55:28 +01:00
qemuvhostuserdata
qemuxml2argvdata virDomainDeviceLoadparmIsValid: Use 'strspn' instead of a loop 2021-12-01 13:39:47 +01:00
qemuxml2xmloutdata qemuxml2argvtest: Introduce another numa-topology test 2021-11-22 12:27:19 +01:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata whitespace clean-ups 2021-07-15 14:50:48 +02:00
vircgroupdata
virconfdata Add suggestions for virt-pki-query-dn usage 2021-11-12 12:37:29 +01:00
virfilecachedata
virfiledata
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata
virnwfilterbindingxml2xmldata
virpcitestdata
virprocessstatdata util: Add virProcessGetStat 2021-11-23 16:43:08 +01:00
virresctrldata
virscsidata
virstoragetestdata virstoragetest: Reinstate testing of images without 'backing_fmt' 2021-09-09 15:29:00 +02:00
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata tests: Add missing test cases to vmx2xmltest 2021-08-19 13:32:10 +02:00
xlconfigdata
xmconfigdata
xml2vmxdata
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c tests: bhyve: use bitwise shift when defining flags 2021-09-08 15:13:12 +02:00
bhyvexml2argvmock.c lib: Drop intermediary return variables 2021-10-25 12:48:46 +02:00
bhyvexml2argvtest.c
bhyvexml2xmltest.c
commandhelper.c
commandtest.c
cputest.c tests: remove pointless labels 2021-09-09 18:06:13 +02:00
domaincapsmock.c virhostmem: Introduce virHostMemGetTHPSize() 2021-10-01 10:58:27 +02:00
domaincapstest.c qemu: mock swtpm initialization in tests 2021-12-01 12:14:03 +00:00
domainconftest.c lib: Drop needless one line labels 2021-11-22 12:39:59 +01:00
esxutilstest.c tests: esxutils: reduce variable scope in testConvertWindows1252ToUTF8 2021-09-08 15:31:01 +02:00
eventtest.c tests: use g_autofree 2021-09-09 18:06:13 +02:00
fchosttest.c tests: remove pointless labels 2021-09-09 18:06:13 +02:00
fdstreamtest.c tests: use VIR_AUTOCLOSE 2021-09-09 18:06:13 +02:00
genericxml2xmltest.c virDomainBackupDefFormat: Propagate private data callbacks 2021-11-04 10:55:28 +01:00
interfacexml2xmltest.c lib: Introduce and use g_autoptr() for virInterfaceDef 2021-11-02 10:52:18 +01:00
libvirtd-fail
libvirtd-pool
libxlmock.c
libxlxml2domconfigtest.c tests: use g_auto instead of virDomainFree 2021-09-09 18:06:13 +02:00
lxcconf2xmltest.c tests: remove pointless labels 2021-09-09 18:06:13 +02:00
lxcxml2xmltest.c tests: use g_autofree 2021-09-09 18:06:13 +02:00
meson.build util: Add virProcessGetStat 2021-11-23 16:43:08 +01:00
metadatatest.c tests: remove pointless labels 2021-09-09 18:06:13 +02:00
networkxml2conftest.c tests: network: use g_autofree 2021-09-09 18:06:13 +02:00
networkxml2firewalltest.c tests: network: use g_autofree 2021-09-09 18:06:13 +02:00
networkxml2xmltest.c tests: network: use g_autofree 2021-09-09 18:06:13 +02:00
networkxml2xmlupdatetest.c tests: network: use g_autofree 2021-09-09 18:06:13 +02:00
nodedevmdevctltest.c nodedev: Add tests for mdevctl autostart command 2021-09-14 14:24:07 -05:00
nodedevxml2xmltest.c Add PCI VPD Capability Support 2021-10-21 17:34:04 +01:00
nsslinktest.c
nssmock.c
nsstest.c tests: use g_autofree 2021-09-09 18:06:13 +02:00
nwfilterebiptablestest.c tests: nwfilter: remove pointless labels 2021-09-09 18:06:13 +02:00
nwfilterxml2firewalltest.c Switch away from virHashFree 2021-12-01 13:53:12 +01:00
nwfilterxml2xmltest.c tests: nwfilter: use g_autofree 2021-09-09 18:06:13 +02:00
objecteventtest.c objecteventtest: Don't overwrite @ret on failure 2021-10-18 12:09:33 +02:00
openvzutilstest.c tests: remove pointless labels 2021-09-09 18:06:13 +02:00
openvzutilstest.conf
permitted_file_access.txt
pkix_asn1_tab.c
qemuagenttest.c tests: Drop cleanup/error labels 2021-11-11 16:16:30 +01:00
qemublocktest.c qemublocktest: Replace virJSONValueObjectCreate by virJSONValueObjectAdd 2021-11-17 12:04:11 +01:00
qemucapabilitiestest.c tests: Drop cleanup/error labels 2021-11-11 16:16:30 +01:00
qemucaps2xmlmock.c
qemucaps2xmltest.c tests: use g_auto in testQemuGetCaps 2021-08-20 15:19:35 +02:00
qemucapsfixreplies
qemucapsprobe.c qemu: Invalidate capabilities cache on host cpuid mismatch 2021-11-05 17:12:25 +01:00
qemucapsprobemock.c tests: qemu: remove pointless labels 2021-09-09 18:06:13 +02:00
qemucommandutiltest.c tests: qemu: remove pointless labels 2021-09-09 18:06:13 +02:00
qemucpumock.c
qemudomaincheckpointxml2xmltest.c
qemudomainsnapshotxml2xmltest.c
qemufirmwaretest.c
qemuhotplugmock.c virDevMapperGetTargets: Use a linked list as return type 2021-09-21 12:25:42 +02:00
qemuhotplugtest.c tests: Use g_autoptr(qemuMonitorTest) 2021-11-11 16:16:26 +01:00
qemumemlocktest.c
qemumigparamstest.c tests: Drop cleanup/error labels 2021-11-11 16:16:30 +01:00
qemumigrationcookiexmltest.c testQEMUSchemaValidateCommand: Add possibility for partial QMP validation 2021-10-18 14:00:58 +02:00
qemumonitorjsontest.c qemumonitorjsontest: mymain: Automatically free GHashTable 2021-12-01 13:53:12 +01:00
qemumonitortestutils.c tests: Drop cleanup/error labels 2021-11-11 16:16:30 +01:00
qemumonitortestutils.h
qemusecuritymock.c Switch away from virHashFree 2021-12-01 13:53:12 +01:00
qemusecuritytest.c
qemusecuritytest.h
qemustatusxml2xmltest.c test: Drop unused @cfg from qemu*test 2021-08-26 09:16:44 +02:00
qemuvhostusertest.c
qemuxml2argvmock.c lib: Drop intermediary return variables 2021-10-25 12:48:46 +02:00
qemuxml2argvtest.c qemuxml2argvtest: Use 'g_hash_table_unref' for clearing the qapi schema cache 2021-12-01 13:53:12 +01:00
qemuxml2xmltest.c qemuxml2argvtest: Introduce another numa-topology test 2021-11-22 12:27:19 +01:00
scsihosttest.c tests: remove pointless labels 2021-09-09 18:06:13 +02:00
seclabeltest.c
secretxml2xmltest.c tests: use g_autofree 2021-09-09 18:06:13 +02:00
securityselinuxhelper.c
securityselinuxlabeltest.c tests: remove pointless labels 2021-09-09 18:06:13 +02:00
securityselinuxtest.c conf: Store SCSI bus length in virDomainDef 2021-08-16 14:22:38 +02:00
shunloadhelper.c
shunloadtest.c
sockettest.c tests: use g_autofree 2021-09-09 18:06:13 +02:00
ssh.c
storagebackendsheepdogtest.c
storagepoolcapstest.c
storagepoolxml2argvtest.c
storagepoolxml2xmltest.c
storagevolxml2argvtest.c
storagevolxml2xmltest.c
sysinfotest.c
test-lib.sh
testutils.c lib: Don't check for virCapabilitiesAddGuestDomain() retval 2021-11-01 16:08:26 +01:00
testutils.h Add a PCI/PCIe device VPD Parser 2021-10-21 17:34:04 +01:00
testutilshostcpus.h
testutilslxc.c testLXCCapsInit: Cleanup 2021-11-08 14:32:32 +01:00
testutilslxc.h
testutilsqemu.c lib: Don't check for virCapabilitiesAddGuestDomain() retval 2021-11-01 16:08:26 +01:00
testutilsqemu.h tests: qemuxml2*test: switch to virTestRunLog 2021-08-23 14:43:57 +02:00
testutilsqemuschema.c testQEMUSchemaValidateEnum: Validate deprecated members 2021-11-01 17:37:15 +01:00
testutilsqemuschema.h testQEMUSchemaValidateCommand: Add possibility for partial QMP validation 2021-10-18 14:00:58 +02:00
testutilsxen.c lib: Don't check for virCapabilitiesAddGuestDomain() retval 2021-11-01 16:08:26 +01:00
testutilsxen.h
utiltest.c
vboxsnapshotxmltest.c Prefer g_auto(GStrv) over g_strfreev() 2021-11-11 16:16:17 +01:00
viralloctest.c
virauthconfigtest.c
virbitmaptest.c
virbuftest.c
vircaps2xmltest.c
vircapstest.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
vircgroupmock.c
vircgrouptest.c tests: vir: use g_autofree 2021-09-09 18:06:13 +02:00
virconftest.c Prefer g_auto(GStrv) over g_strfreev() 2021-11-11 16:16:17 +01:00
vircryptotest.c util: Remove use of virCryptoHaveCipher(VIR_CRYPTO_CIPHER_AES256CBC) 2021-09-22 14:53:55 +02:00
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c
virerrortest.c
virfilecachemock.c
virfilecachetest.c tests: vir: use g_autofree 2021-09-09 18:06:13 +02:00
virfilemock.c tests: vir: use g_autofree 2021-09-09 18:06:13 +02:00
virfiletest.c Prefer g_auto(GStrv) over g_strfreev() 2021-11-11 16:16:17 +01:00
virfilewrapper.c util: alloc: Completely replace VIR_APPEND_ELEMENT_QUIET by VIR_APPEND_ELEMENT 2021-08-06 08:53:25 +02:00
virfilewrapper.h
virfirewallmock.c
virfirewalltest.c lib: Use $PROG instead of $PROG_PATH 2021-09-21 14:09:44 +02:00
virgdbusmock.c
virhostcpumock.c
virhostcputest.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
virhostdevmock.c
virhostdevtest.c
virhostidmock.c
viridentitytest.c
viriscsitest.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
virjsontest.c virjsontest: Replace virJSONValueObjectCreate by virJSONValueObjectAdd 2021-11-17 12:04:11 +01:00
virkeycodetest.c
virkmodtest.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
virlockspacetest.c
virlogtest.c
virmacmaptest.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
virmigtest.c
virmock.h
virmockstathelpers.c
virnetdaemonmock.c
virnetdaemontest.c tests: use g_autoptr instead of virJSONValueFree 2021-09-09 18:06:13 +02:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c tests: virnetdev*: remove unnecessary labels 2021-08-20 16:43:20 +02:00
virnetdevmock.c
virnetdevopenvswitchtest.c virnetdevopenvswitch: unify calculation of ovs and tc 2021-11-01 15:56:47 +01:00
virnetdevtest.c
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c lib: Drop intermediary return variables 2021-10-25 12:48:46 +02:00
virnetsockettest.c virnetsocket: Don't free virCommand in virNetSocketNewConnectCommand() 2021-10-15 16:03:22 +02:00
virnettlscontexttest.c
virnettlshelpers.c tests: use VIR_AUTOCLOSE 2021-09-09 18:06:13 +02:00
virnettlshelpers.h
virnettlssessiontest.c
virnetworkportxml2xmltest.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
virnumamock.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
virnwfilterbindingxml2xmltest.c tests: vir: use g_autofree 2021-09-09 18:06:13 +02:00
virpcimock.c lib: Use G_N_ELEMENTS instead of sizeof()/sizeof() 2021-11-03 14:46:54 +01:00
virpcitest.c Add PCI VPD-related helper functions to virpci 2021-10-21 17:34:04 +01:00
virpcivpdtest.c tests: pcivpdtest: check return value of virCreateAnonymousFile 2021-11-23 16:59:36 +01:00
virpolkittest.c
virportallocatormock.c
virportallocatortest.c
virprocessmock.c
virprocessstattest.c util: Add virProcessGetStat 2021-11-23 16:43:08 +01:00
virrandommock.c
virresctrltest.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
virrotatingfiletest.c tests: use VIR_AUTOCLOSE 2021-09-09 18:06:13 +02:00
virschematest.c
virscsitest.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
virsh-auth
virsh-auth.xml
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse
virsh-output
virsh-output-commands
virsh-output.out
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-snapshot test: snapshot revert: properly emulate starting CPUs 2021-11-23 11:41:55 +01:00
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c tests: Test IOThread related functions for test driver 2021-09-23 13:41:39 +02:00
virstoragetest.c Fix typos 2021-09-17 14:28:00 +02:00
virstorageutiltest.c
virstringtest.c Prefer g_auto(GStrv) over g_strfreev() 2021-11-11 16:16:17 +01:00
virsystemdtest.c tests: vir: remove pointless labels 2021-09-09 18:06:13 +02:00
virt-aa-helper-test
virt-admin-self-test
virtestmock.c tests: vir: use g_autofree 2021-09-09 18:06:13 +02:00
virtimetest.c
virtypedparamtest.c
viruritest.c tests: vir: use g_autofree 2021-09-09 18:06:13 +02:00
virusbmock.c lib: Drop intermediary return variables 2021-10-25 12:48:46 +02:00
virusbtest.c tests: vir: use g_autofree 2021-09-09 18:06:13 +02:00
vmwarevertest.c tests: remove pointless labels 2021-09-09 18:06:13 +02:00
vmx2xmltest.c lib: Don't check for virCapabilitiesAddGuestDomain() retval 2021-11-01 16:08:26 +01:00
vshtabletest.c testVshTableHeader: Cleanup 2021-11-08 14:32:32 +01:00
xlconfigtest.c tests: libxl: remove pointless labels 2021-09-09 18:06:13 +02:00
xmconfigtest.c tests: libxl: remove pointless labels 2021-09-09 18:06:13 +02:00
xml2vmxtest.c lib: Don't check for virCapabilitiesAddGuestDomain() retval 2021-11-01 16:08:26 +01:00