libvirt/tests
Michal Privoznik d7e5baa5a1 virmock: Initialize both symbols in VIR_MOCK_REAL_INIT_ALT
It may happen that both symbols are present. Especially when
chaining mocks. For instance if a test is using virpcimock and
then both stat and __xstat would be present in the address space
as virpcimock implements both. Then, if the test would try to use
say virfilewrapper (which again uses VIR_MOCK_REAL_INIT_ALT() to
init real_stat and real___xstat) it would find stat() from
virpcimock and stop there. The virfilewrapper.c:real___xstat
wouldn't be initialized and thus it may result in a segfault.

The reason for segfault is that sys/stat.h may redefine stat() to
call __xstat().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-07 13:40:17 +01:00
..
bhyveargv2xmldata
bhyvexml2argvdata bhyve: implement ignore unknown MSRs feature 2019-02-24 13:20:51 +04:00
bhyvexml2xmloutdata bhyve: implement ignore unknown MSRs feature 2019-02-24 13:20:51 +04:00
capabilityschemadata Add armv6l Support as guest 2018-12-03 14:31:41 +01:00
commanddata qemu: use line breaks in command line args written to log 2018-12-17 15:02:11 +00:00
cputestdata cpu_map: Add more signatures for Broadwell CPU models 2019-03-05 14:47:49 +01:00
domaincapsschemadata qemu: domcaps: Report disk <enum name="model"> 2019-03-04 11:08:41 -05:00
domainconfdata
domainschemadata
domainsnapshotxml2xmlin
domainsnapshotxml2xmlout
fchostdata/fc_host
genericxml2xmlindata
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata tests: add basic Xen PVH test 2018-11-26 16:33:25 -07:00
lxcconf2xmldata conf: Avoid formatting empty <capabilities> element 2019-03-06 15:53:53 +01:00
lxcxml2xmldata lxc: add possibility to define init uid/gid 2017-07-11 10:41:24 +02:00
lxcxml2xmloutdata
networkxml2confdata network: add netmask to dhcp range of dnsmasq conf file for IPv4 2019-02-21 13:06:16 -05:00
networkxml2firewalldata util: move virtual network firwall rules into private chains 2019-01-29 13:37:11 +00:00
networkxml2xmlin network: allow configuring firewalld zone for virtual network bridge device 2019-02-01 12:57:13 -05:00
networkxml2xmlout network: allow configuring firewalld zone for virtual network bridge device 2019-02-01 12:57:13 -05:00
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevschemadata
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemuargv2xmldata
qemublocktestdata/xml2json
qemucapabilitiesdata qemu: capabilities: Add virtio/vhost {non-}transitional 2019-03-04 11:08:40 -05:00
qemucaps2xmloutdata tests: Unify qemucaps2xml output files 2019-02-05 17:15:05 +01:00
qemuhotplugtestcpus
qemuhotplugtestdevices qemuhotplugtest: Test guestfwd attach and detach 2019-02-14 09:22:17 +01:00
qemuhotplugtestdomains qemuhotplugtest: Test guestfwd attach and detach 2019-02-14 09:22:17 +01:00
qemumemlockdata
qemumigparamsdata
qemumonitorjsondata
qemustatusxml2xmldata
qemuxml2argvdata qemu: Support scsi controller model=virtio-{non-}transitional 2019-03-04 11:08:41 -05:00
qemuxml2xmloutdata tests: Add -inactive suffix when appropriate for qemuxml2xml 2019-03-05 10:41:10 +01:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
sexpr2xmldata
storagepoolcapsschemadata caps: drop requiredSourceElements from storage pool capabilities 2019-03-07 12:01:09 +01:00
storagepoolschemadata
storagepoolxml2argvdata storage: Add storage pool namespace options to fs and netfs command lines 2019-01-29 19:16:19 -05:00
storagepoolxml2xmlin storage: change custom namespace URIs to drop '/source' component 2019-01-31 12:34:05 +00:00
storagepoolxml2xmlout storage: change custom namespace URIs to drop '/source' component 2019-01-31 12:34:05 +00:00
storagevolschemadata
storagevolxml2argvdata util: require command args to be non-NULL 2018-12-17 14:43:33 +00:00
storagevolxml2xmlin util: require command args to be non-NULL 2018-12-17 14:43:33 +00:00
storagevolxml2xmlout conf: Remove volOptions for VIR_STORAGE_POOL_SHEEPDOG 2019-03-06 11:12:48 -05:00
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata
virconfdata
virfilecachedata
virfiledata virfile: added GPFS as shared fs 2019-02-26 11:41:18 +01:00
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevtestdata/sys/class/net
virnwfilterbindingxml2xmldata
virpcitestdata
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata
xlconfigdata xenconfig: add support for openvswitch configuration 2018-12-06 15:05:16 -07:00
xmconfigdata
xml2sexprdata
xml2vmxdata
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c
bhyvexml2argvmock.c
bhyvexml2argvtest.c bhyve: implement ignore unknown MSRs feature 2019-02-24 13:20:51 +04:00
bhyvexml2xmltest.c bhyve: implement ignore unknown MSRs feature 2019-02-24 13:20:51 +04:00
check-file-access.pl
commandhelper.c
commandtest.c qemu: use line breaks in command line args written to log 2018-12-17 15:02:11 +00:00
cputest.c cputest: Test CPU signatures 2019-03-05 14:47:49 +01:00
domaincapsmock.c tests: domcaps: Remove dependency on libxl PVUSB support 2019-02-11 17:40:44 -05:00
domaincapstest.c qemu: domcaps: Report disk <enum name="model"> 2019-03-04 11:08:41 -05:00
domainconftest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
domainsnapshotxml2xmltest.c
esxutilstest.c
eventtest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
fchosttest.c
fdstreamtest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
file_access_whitelist.txt
genericxml2xmltest.c
group-qemu-caps.pl
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
libxlmock.c tests: Rename virmocklibxl.c -> libxlmock.c 2019-02-11 17:40:44 -05:00
libxlxml2domconfigtest.c tests: Rename virmocklibxl.c -> libxlmock.c 2019-02-11 17:40:44 -05:00
lxcconf2xmltest.c tests: Adding test case to include multiple network definitions. 2018-12-11 15:03:08 -05:00
lxcxml2xmltest.c
Makefile.am tests: Introduce storage pool capabilites test 2019-03-06 11:12:48 -05:00
metadatatest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
networkxml2conftest.c network: set mtu as a DHCP option when specified 2019-01-31 17:45:41 +01:00
networkxml2firewalltest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
networkxml2xmltest.c network: set mtu as a DHCP option when specified 2019-01-31 17:45:41 +01:00
networkxml2xmlupdatetest.c
nodedevxml2xmltest.c
nsslinktest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
nssmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
nsstest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
nwfilterebiptablestest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
nwfilterxml2firewalltest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
nwfilterxml2xmltest.c
objecteventtest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
objectlocking.ml Drop UML driver 2018-12-17 17:52:46 +01:00
oomtrace.pl
openvzutilstest.c
openvzutilstest.conf
pkix_asn1_tab.c
qemuagenttest.c
qemuargv2xmltest.c
qemublocktest.c util: Remove the AUTOPTR func for virStorageSource 2019-02-18 10:31:21 +01:00
qemucapabilitiestest.c qemu_process: Enter QMP command mode when starting QEMU Process 2019-02-19 18:44:49 +01:00
qemucaps2xmlmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
qemucaps2xmltest.c tests: Unify qemucaps2xml output files 2019-02-05 17:15:05 +01:00
qemucapsfixreplies
qemucapsprobe.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemucapsprobemock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
qemucommandutiltest.c
qemucpumock.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemuhotplugtest.c qemuhotplugtest: Test guestfwd attach and detach 2019-02-14 09:22:17 +01:00
qemumemlocktest.c
qemumigparamstest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemumonitorjsontest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemumonitortestutils.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemumonitortestutils.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
qemusecuritymock.c tests: Introduce qemusecuritytest 2018-12-19 15:32:43 +01:00
qemusecuritytest.c tests: Introduce qemusecuritytest 2018-12-19 15:32:43 +01:00
qemusecuritytest.h tests: Introduce qemusecuritytest 2018-12-19 15:32:43 +01:00
qemuxml2argvmock.c conf: Add virDomainNetIsVirtioModel 2019-01-24 18:59:38 -05:00
qemuxml2argvtest.c conf: Add <disk model='virtio-{non-}transitional'/> 2019-03-04 11:08:40 -05:00
qemuxml2xmltest.c tests: Use WHEN_BOTH in qemuxml2xml whenever possible 2019-03-05 10:41:08 +01:00
scsihosttest.c
seclabeltest.c Revert "security_manager: Load lock plugin on init" 2018-11-16 13:42:39 +01:00
secretxml2xmltest.c
securityselinuxhelper.c
securityselinuxlabeltest.c Fix minor typos in messages and docs 2018-12-05 10:39:54 +01:00
securityselinuxtest.c Revert "security_manager: Load lock plugin on init" 2018-11-16 13:42:39 +01:00
sexpr2xmltest.c
shunloadhelper.c
shunloadtest.c
sockettest.c
ssh.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
storagebackendsheepdogtest.c tests: Use VIR_AUTOFREE for various storage tests 2019-02-12 08:51:23 -05:00
storagepoolcapstest.c tests: use VIR_AUTOUNREF in storagepoolcapstest 2019-03-07 12:12:11 +01:00
storagepoolxml2argvtest.c tests: Fix memory leak in testCompareXMLToArgvFiles 2019-02-12 13:11:36 -05:00
storagepoolxml2xmltest.c tests: Use VIR_AUTOFREE for various storage tests 2019-02-12 08:51:23 -05:00
storagevolxml2argvtest.c tests: Use VIR_AUTOFREE for various storage tests 2019-02-12 08:51:23 -05:00
storagevolxml2xmltest.c tests: Use VIR_AUTOFREE for various storage tests 2019-02-12 08:51:23 -05:00
sysinfotest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
test-lib.sh
test-wrap-argv.pl
testutils.c Use virStringHasSuffix() where possible 2019-03-07 10:10:49 +01:00
testutils.h testutils: Explicitly name virTestCompare*() arguments 2019-02-20 15:54:41 +01:00
testutilshostcpus.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
testutilslxc.c
testutilslxc.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
testutilsqemu.c util: Rename virFileStripSuffix() to virStringStripSuffix() 2019-03-07 10:10:43 +01:00
testutilsqemu.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
testutilsqemuschema.c
testutilsqemuschema.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
testutilsxen.c xenconfig: add support for type="pvh" 2018-11-26 16:38:26 -07:00
testutilsxen.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
utiltest.c
vboxsnapshotxmltest.c
viralloctest.c
viratomictest.c
virauthconfigtest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virbitmaptest.c
virbuftest.c util: buffer: Introduce VIR_AUTOCLEAN function for virBuffer 2019-02-22 10:05:45 +01:00
vircaps2xmltest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
vircapstest.c
vircgroupmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
vircgrouptest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virconftest.c
vircryptotest.c
virdbusmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virdbustest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virdeterministichashmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virdrivermoduletest.c Drop UML driver 2018-12-17 17:52:46 +01:00
virendiantest.c
virerrortest.c tests: Fix possible NULL derefs in virErrorTestMsgs 2018-12-18 10:12:09 -05:00
virfilecachemock.c
virfilecachetest.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virfilemock.c virfile: added GPFS as shared fs 2019-02-26 11:41:18 +01:00
virfiletest.c virfile: added GPFS as shared fs 2019-02-26 11:41:18 +01:00
virfilewrapper.c
virfilewrapper.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virfirewalltest.c util: move all firewalld-specific stuff into its own files 2019-02-01 12:08:37 -05:00
virhashdata.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virhashtest.c Fix minor typos in messages and docs 2018-12-05 10:39:54 +01:00
virhostcpumock.c
virhostcputest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virhostdevtest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
viridentitytest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
viriscsitest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virjsontest.c
virkeycodetest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virkeyfiletest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virkmodtest.c virkmodtest: Don't fail if modprobe doesn't exist 2019-02-14 18:03:10 +01:00
virlockspacetest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virlogtest.c
virmacmaptest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virmock.h virmock: Initialize both symbols in VIR_MOCK_REAL_INIT_ALT 2019-03-07 13:40:17 +01:00
virnetdaemonmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetdaemontest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetdevbandwidthmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetdevbandwidthtest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virnetdevmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetdevtest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetmessagetest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetserverclientmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetserverclienttest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetsockettest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnettlscontexttest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnettlshelpers.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnettlshelpers.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virnettlssessiontest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnumamock.c
virnwfilterbindingxml2xmltest.c
virpcimock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virpcitest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virpolkittest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virportallocatormock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virportallocatortest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virrandommock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virresctrltest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virrotatingfiletest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virschematest.c Use virStringHasSuffix() where possible 2019-03-07 10:10:49 +01:00
virscsitest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c virsh: Elide backslash-newline in batch mode 2019-02-26 15:42:21 -06:00
virstoragetest.c util: Replace virStorageSourceFree with virObjectUnref 2019-02-18 10:31:21 +01:00
virstorageutiltest.c tests: Use VIR_AUTOFREE for various storage tests 2019-02-12 08:51:23 -05:00
virstringtest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virsystemdtest.c Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virt-aa-helper-test virt-aa-helper: generate rules for gl enabled graphics devices 2019-01-23 07:54:58 +01:00
virt-admin-self-test
virtestmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virtimetest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virtypedparamtest.c
viruritest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virusbmock.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virusbtest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
vmwarevertest.c
vmx2xmltest.c
vshtabletest.c vsh-table: allow empty columns 2019-02-12 10:14:53 +01:00
xlconfigtest.c src/xenconfig: update copyright notice 2019-02-22 12:52:25 +00:00
xmconfigtest.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
xml2sexprtest.c
xml2vmxtest.c