]> xenbits.xensource.com Git - libvirt.git/commit
tests: Use plain close() in mock code
authorAndrea Bolognani <abologna@redhat.com>
Thu, 11 Feb 2016 10:33:45 +0000 (11:33 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 11 Feb 2016 11:33:43 +0000 (12:33 +0100)
commita03cbfe0fb93bad72d27672a3a00509650038c1f
tree1557da3a88c3015a6d65ccdec3d96ad631c149b7
parent862298a2e7bef059b73f477e8a88d403c523e10b
tests: Use plain close() in mock code

The virportallocatortest.c file is compiled both as a test case
and as a mock library; in the latter case, it can't use
VIR_FORCE_CLOSE() because mock libraries are not linked against
libvirt.

Replace VIR_FORCE_CLOSE() with plain close() to solve the issue.
tests/virportallocatortest.c