]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
tests: Check for virQEMUDriverConfigNew return value
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 26 Jan 2015 16:09:36 +0000 (17:09 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 26 Jan 2015 16:34:33 +0000 (17:34 +0100)
commitc6ec7c6b0bc5dc420eb50da528431632659c6009
tree8a0689a5dad6e8ae99357f17046584ad3d593dc3
parentb54f48812d2a495674476533b45c5bcb6b2dad91
tests: Check for virQEMUDriverConfigNew return value

The function may return NULL if something went wrong. In some places
in the tests we are not checking the return value rather than
accessing the pointer directly resulting in SIGSEGV.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/domaincapstest.c
tests/qemuhotplugtest.c
tests/qemuxmlnstest.c