]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Use libvirt properly with initialization and error dispatching
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 15 Jun 2015 08:41:17 +0000 (10:41 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 15 Jun 2015 15:13:00 +0000 (17:13 +0200)
commit38788a3209c5d7d2cece261ae128fb07bb348ce7
treec79d4383e51cb87400bf9139a2ba6a1bd12afcc9
parent73ad20e936b0fc9fac59efb66e6f77a5739aab4b
tests: Use libvirt properly with initialization and error dispatching

We were using "complicated" error printing in virnetservertest even
though we could've just dispatched the error.  Also add some good
practices that might come in handy (the code may fail without proper
initialization and event loop).

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tests/virnetservertest.c