virt: Fix unit tests build with libvirt versions < 1.3
authorRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Wed, 7 Mar 2018 14:40:35 +0000 (14:40 +0000)
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Tue, 13 Mar 2018 09:49:05 +0000 (09:49 +0000)
commit1faf3478bc1e3fedea3781510554277876429793
tree0f2ad35d34e3c4945ffb4a66aa89714a60901c38
parent91a079ffdfe4ccc89bd1b57d37a4389dabc08022
virt: Fix unit tests build with libvirt versions < 1.3

Previously too much code was disabled in ifdefs, and during
compilation with old libvirt (version < 1.3.x) warning was shown
because of unused test variables.

Change-Id: I631c9446add4ccef068a3c4585f8750a5930f406
Signed-off-by: Radoslaw Jablonski <radoslawx.jablonski@intel.com>
src/virt_test.c