From: Andrea Bolognani Date: Thu, 11 Feb 2016 10:33:45 +0000 (+0100) Subject: tests: Use plain close() in mock code X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a03cbfe0fb;p=libvirt.git 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. --- diff --git a/tests/virportallocatortest.c b/tests/virportallocatortest.c index 58b2155994..077aad8542 100644 --- a/tests/virportallocatortest.c +++ b/tests/virportallocatortest.c @@ -58,7 +58,7 @@ static void init_syms(void) return; host_has_ipv6 = true; - VIR_FORCE_CLOSE(fd); + close(fd); } int socket(int domain,