libvirt/tests
Ján Tomko 7b48bb8ca0 Use g_strdup to fill in default values
Replace:
  if (!s && VIR_STRDUP(s, str) < 0)
    goto;
with:
  if (!s)
    s = g_strdup(str);

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-10-21 12:51:55 +02:00
..
bhyveargv2xmldata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata
commanddata commandtest: Remove commandhelper.log in test27 2019-07-29 16:27:05 +02:00
cputestdata cpu_map: Introduce IA32_ARCH_CAPABILITIES MSR features 2019-06-20 14:02:36 +02:00
domaincapsschemadata tests: Add capabilities for QEMU 4.2.0 on aarch64 2019-10-11 09:37:33 +02:00
domainconfdata
domainschemadata
fchostdata/fc_host
genericxml2xmlindata conf: resctrl object is not properly handled 2019-08-20 15:36:36 +02:00
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata tests: libxl: ACPI slic table test 2019-10-10 21:02:03 -06:00
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata network: wire up dnsmasq option xmlns 2019-07-17 17:18:56 -04:00
networkxml2firewalldata network: allow DHCP/DNS/TFTP explicitly in OUTPUT rules 2019-10-18 18:49:54 +01:00
networkxml2xmlin network: wire up dnsmasq option xmlns 2019-07-17 17:18:56 -04:00
networkxml2xmlout network: wire up dnsmasq option xmlns 2019-07-17 17:18:56 -04:00
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevschemadata
nssdata nss: Don't stop parsing on unexpected key 2019-08-09 12:17:19 +02:00
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata tests: qemublock: Use bigger numbers as dummy capacity/physical 2019-09-04 09:13:49 +02:00
qemucapabilitiesdata tests: Add capabilities for QEMU 4.2.0 on aarch64 2019-10-11 09:37:33 +02:00
qemucaps2xmloutdata
qemudomaincheckpointxml2xmlin backup: Document new XML for checkpoints 2019-07-26 16:48:58 -05:00
qemudomaincheckpointxml2xmlout backup: Parse and output checkpoint XML 2019-07-26 16:48:58 -05:00
qemudomainsnapshotxml2xmlin snapshot: Rename qemu domain snapshot test files 2019-07-08 16:10:22 -05:00
qemudomainsnapshotxml2xmlout snapshot: Rename qemu domain snapshot test files 2019-07-08 16:10:22 -05:00
qemufirmwaredata
qemuhotplugtestcpus qemu: command: Use all vCPU properties when creating args for vCPU hotplug 2019-08-29 16:36:26 +02:00
qemuhotplugtestdevices tests: Add test case for QEMU pci-hostdev hotplug 2019-09-09 16:44:24 +02:00
qemuhotplugtestdomains tests: Add test case for QEMU pci-hostdev hotplug 2019-09-09 16:44:24 +02:00
qemumemlockdata
qemumigparamsdata
qemumonitorjsondata qemu: monitor: Add infrastructure for 'query-jobs' 2019-07-18 17:59:33 +02:00
qemustatusxml2xmldata tests: qemustatusxml2xml: Fix disk target mess 2019-09-16 11:50:28 +02:00
qemuvhostuserdata qemu: add vhost-user helpers 2019-09-24 13:19:08 -04:00
qemuxml2argvdata qemu: Generate 'xres' and 'yres' for QEMU video devices 2019-10-17 16:18:34 -04:00
qemuxml2xmloutdata qemu: Generate 'xres' and 'yres' for QEMU video devices 2019-10-17 16:18:34 -04:00
secretxml2xmlin secret: Add support for usage type vTPM, extend schema and test case 2019-07-26 09:59:27 +01:00
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata Revert "conf: Remove volOptions for VIR_STORAGE_POOL_RBD" 2019-07-12 17:09:43 +02:00
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin conf: storage: also sanitize source dir 2019-06-25 17:11:56 +02:00
storagepoolxml2xmlout conf: storage: also sanitize source dir 2019-06-25 17:11:56 +02:00
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata
virconfdata remote: delete the avahi mDNS support 2019-06-21 12:59:42 +01:00
virfilecachedata
virfiledata virfile: Add Quobyte as a shared fs 2019-07-19 10:52:06 +02:00
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata rpc: avoid unlinking sockets passed in from systemd 2019-07-12 16:55:39 +01:00
virnetdevopenvswitchdata test: Introduce virnetdevopenvswitchtest 2019-07-16 13:42:39 +02:00
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata
virnwfilterbindingxml2xmldata
virpcitestdata virpcimock: Mock the SRIOV Virtual functions 2019-09-09 16:44:24 +02:00
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata
xlconfigdata libxl: add slic_table <-> acpi_firmware conversion 2019-10-10 21:02:09 -06:00
xmconfigdata
xml2vmxdata
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c tests: remove use of virTestOOMActive from bhyve testsuite 2019-09-13 16:03:18 +01:00
bhyvexml2argvmock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
bhyvexml2argvtest.c tests: Always put a '\n' after each debug print 2019-08-27 15:49:48 +02:00
bhyvexml2xmltest.c tests: Always put a '\n' after each debug print 2019-08-27 15:49:48 +02:00
check-file-access.pl
commandhelper.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
commandtest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
cputest.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
domaincapsmock.c
domaincapstest.c Use g_strdup to fill in default values 2019-10-21 12:51:55 +02:00
domainconftest.c
esxutilstest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
eventtest.c Use G_GNUC_PRINTF instead of ATTRIBUTE_FMT_PRINTF 2019-10-15 16:14:18 +02:00
fchosttest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
fdstreamtest.c build: remove use of usleep gnulib module in favour of g_usleep 2019-10-14 10:54:42 +01:00
file_access_whitelist.txt
genericxml2xmltest.c
group-qemu-caps.pl
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
libxlmock.c
libxlxml2domconfigtest.c tests: libxl: ACPI slic table test 2019-10-10 21:02:03 -06:00
lxcconf2xmltest.c
lxcxml2xmltest.c
Makefile.am build: link to glib library 2019-10-14 10:54:42 +01:00
metadatatest.c
networkxml2conftest.c Use g_steal_pointer instead of VIR_STEAL_PTR everywhere 2019-10-16 15:59:42 +02:00
networkxml2firewalltest.c Use g_strdup instead of ignoring VIR_STRDUP_QUIET's value 2019-10-21 12:51:55 +02:00
networkxml2xmltest.c network: wire up dnsmasq option xmlns 2019-07-17 17:18:56 -04:00
networkxml2xmlupdatetest.c conf: Add network xmlopt argument 2019-07-17 17:18:56 -04:00
nodedevxml2xmltest.c
nsslinktest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
nssmock.c
nsstest.c tests: Add lib- prefix to all mocks 2019-08-23 11:26:26 +01:00
nwfilterebiptablestest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
nwfilterxml2firewalltest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
nwfilterxml2xmltest.c
objecteventtest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
openvzutilstest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
openvzutilstest.conf
pkix_asn1_tab.c
qemuagenttest.c Use g_steal_pointer instead of VIR_STEAL_PTR everywhere 2019-10-16 15:59:42 +02:00
qemublocktest.c Use g_steal_pointer instead of VIR_STEAL_PTR everywhere 2019-10-16 15:59:42 +02:00
qemucapabilitiestest.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
qemucaps2xmlmock.c
qemucaps2xmltest.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
qemucapsfixreplies
qemucapsprobe.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
qemucapsprobemock.c
qemucommandutiltest.c
qemucpumock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
qemudomaincheckpointxml2xmltest.c Use g_autoptr instead of VIR_AUTOUNREF 2019-10-16 12:06:44 +02:00
qemudomainsnapshotxml2xmltest.c Use g_autoptr instead of VIR_AUTOUNREF 2019-10-16 12:06:44 +02:00
qemufirmwaretest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
qemuhotplugtest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
qemumemlocktest.c tests: Add lib- prefix to all mocks 2019-08-23 11:26:26 +01:00
qemumigparamstest.c util: remove some no-op thread functions 2019-09-19 12:50:21 +01:00
qemumonitorjsontest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
qemumonitortestutils.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
qemumonitortestutils.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
qemusecuritymock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
qemusecuritytest.c Use g_steal_pointer instead of VIR_STEAL_PTR everywhere 2019-10-16 15:59:42 +02:00
qemusecuritytest.h qemusecuritymock: Allow some paths to be not restored 2019-07-03 08:36:04 +02:00
qemuvhostusertest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
qemuxml2argvmock.c Use g_strdup where VIR_STRDUP's return value was propagated 2019-10-21 12:51:55 +02:00
qemuxml2argvtest.c Use g_strdup instead of ignoring VIR_STRDUP's value 2019-10-21 12:51:55 +02:00
qemuxml2xmltest.c conf: Add 'x' and 'y' resolution into video XML definition 2019-10-17 16:18:34 -04:00
scsihosttest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
seclabeltest.c util: replace strerror/strerror_r with g_strerror 2019-10-14 10:54:42 +01:00
secretxml2xmltest.c secret: Add support for usage type vTPM, extend schema and test case 2019-07-26 09:59:27 +01:00
securityselinuxhelper.c Use g_strdup where VIR_STRDUP's return value was propagated 2019-10-21 12:51:55 +02:00
securityselinuxlabeltest.c security: Pass @migrated to virSecurityManagerSetAllLabel 2019-10-14 17:14:13 +02:00
securityselinuxtest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
shunloadhelper.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
shunloadtest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
sockettest.c tests: Avoid IPv4-translated IPv6 address in sockettest 2019-08-23 11:26:26 +01:00
ssh.c
storagebackendsheepdogtest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
storagepoolcapstest.c Use g_autoptr instead of VIR_AUTOUNREF 2019-10-16 12:06:44 +02:00
storagepoolxml2argvtest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
storagepoolxml2xmltest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
storagevolxml2argvtest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
storagevolxml2xmltest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
sysinfotest.c
test-lib.sh build: drop the mktempd gnulib module 2019-10-07 11:34:24 +01:00
test-wrap-argv.pl
testutils.c Use g_strdup instead of ignoring VIR_STRDUP's value 2019-10-21 12:51:55 +02:00
testutils.h use G_GNUC_NULL_TERMINATED instead of ATTRIBUTE_SENTINEL 2019-10-15 11:25:22 +02:00
testutilshostcpus.h Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
testutilslxc.c
testutilslxc.h
testutilsqemu.c Use g_steal_pointer instead of VIR_STEAL_PTR everywhere 2019-10-16 15:59:42 +02:00
testutilsqemu.h tests: add slirp-helper qemuxml2argv test 2019-09-06 12:47:47 +02:00
testutilsqemuschema.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
testutilsqemuschema.h
testutilsxen.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
testutilsxen.h
utiltest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
vboxsnapshotxmltest.c
viralloctest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
viratomictest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virauthconfigtest.c
virbitmaptest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
virbuftest.c virbuffer: use g_auto directly for virBuffer 2019-10-16 12:06:43 +02:00
vircaps2xmltest.c tests: Add lib- prefix to all mocks 2019-08-23 11:26:26 +01:00
vircapstest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
vircgroupmock.c
vircgrouptest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virconftest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
vircryptotest.c tests: Add lib- prefix to all mocks 2019-08-23 11:26:26 +01:00
virdbusmock.c
virdbustest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virdeterministichashmock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virdriverconnvalidatetest.c tests: add a test for driver.c:virConnectValidateURIPath() 2019-10-11 12:20:08 -04:00
virdrivermoduletest.c
virendiantest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virerrortest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virfilecachemock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virfilecachetest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virfilemock.c Use g_strdup instead of ignoring VIR_STRDUP_QUIET's value 2019-10-21 12:51:55 +02:00
virfiletest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virfilewrapper.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virfilewrapper.h
virfirewalltest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virhashdata.h
virhashtest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virhostcpumock.c
virhostcputest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virhostdevtest.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
viridentitytest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
viriscsitest.c Use g_strdup instead of ignoring VIR_STRDUP's value 2019-10-21 12:51:55 +02:00
virjsontest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
virkeycodetest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virkeyfiletest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virkmodtest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virlockspacetest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virlogtest.c tests: Always put a '\n' after each debug print 2019-08-27 15:49:48 +02:00
virmacmaptest.c tests: Add lib- prefix to all mocks 2019-08-23 11:26:26 +01:00
virmock.h tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virmockstathelpers.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virnetdaemonmock.c
virnetdaemontest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virnetdevbandwidthmock.c tests: Add getuid() to virnetdevbandwidthmock 2019-07-09 15:01:54 +02:00
virnetdevbandwidthtest.c tests: Add lib- prefix to all mocks 2019-08-23 11:26:26 +01:00
virnetdevmock.c
virnetdevopenvswitchtest.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virnetdevtest.c tests: Add lib- prefix to all mocks 2019-08-23 11:26:26 +01:00
virnetmessagetest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virnetserverclientmock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virnetserverclienttest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virnetsockettest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virnettlscontexttest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virnettlshelpers.c
virnettlshelpers.h
virnettlssessiontest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virnetworkportxml2xmltest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
virnumamock.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virnwfilterbindingxml2xmltest.c
virpcimock.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virpcitest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virpolkittest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virportallocatormock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virportallocatortest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virprocessmock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virrandommock.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virresctrltest.c tests: Always put a '\n' after each debug print 2019-08-27 15:49:48 +02:00
virrotatingfiletest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virschematest.c nwfilter: move standard XML configs out of examples dir 2019-08-19 11:52:44 +01:00
virscsitest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virsh-checkpoint tests: Fix virsh-snapshot/checkpoint without readline-devel 2019-08-02 09:44:41 -05:00
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse tests: virsh-optparse: Drop obsolete cpu-stats test cases 2019-07-29 15:56:46 +02:00
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-snapshot tests: Fix virsh-snapshot/checkpoint without readline-devel 2019-08-02 09:44:41 -05:00
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
virstoragetest.c Use g_steal_pointer instead of VIR_STEAL_PTR everywhere 2019-10-16 15:59:42 +02:00
virstorageutiltest.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
virstringtest.c Use g_strdup instead of ignoring VIR_STRDUP's value 2019-10-21 12:51:55 +02:00
virsystemdtest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
virt-aa-helper-test
virt-admin-self-test
virtestmock.c util: drop support for stack traces with logging 2019-10-18 16:25:17 +01:00
virtimetest.c
virtypedparamtest.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
viruritest.c tests: viruri: Add test for password in URI userinfo 2019-08-26 13:49:16 +02:00
virusbmock.c
virusbtest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
vmwarevertest.c
vmx2xmltest.c Use g_strdup instead of ignoring VIR_STRDUP's value 2019-10-21 12:51:55 +02:00
vshtabletest.c tests: use G_GNUC_UNUSED 2019-10-15 11:25:25 +02:00
xlconfigtest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
xmconfigtest.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
xml2vmxtest.c Use g_strdup instead of ignoring VIR_STRDUP's value 2019-10-21 12:51:55 +02:00