]> xenbits.xensource.com Git - libvirt.git/commit
Exercise the ABI stability check code in test suite
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 10 Jan 2014 17:18:03 +0000 (17:18 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 10 Jan 2014 20:32:48 +0000 (20:32 +0000)
commit53a699a07b118af2cd1c4625588737095c125b2f
tree676cf650334382e09eba72b7093dd4039a9ab048
parentdd0dda2e4a80bacb78125e0236e93590f3c4dc5d
Exercise the ABI stability check code in test suite

Any test suite which involves a virDomainDefPtr should
call virDomainDefCheckABIStability with itself just as
a basic sanity check that the identity-comparison always
succeeds. This would have caught the recent NULL pointer
access crash.

Make sure we cope with def->name being NULL since the
VMWare config parser produces NULL names.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/conf/domain_conf.c
tests/lxcxml2xmltest.c
tests/qemuargv2xmltest.c
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c
tests/qemuxmlnstest.c
tests/sexpr2xmltest.c
tests/vmx2xmltest.c
tests/xmconfigtest.c
tests/xml2sexprtest.c
tests/xml2vmxtest.c