mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
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.
This commit is contained in:
1 parent
862298a2e7
commit
a03cbfe0fb
1 file changed
+1
-1
@@ -58,7 +58,7 @@ static void init_syms(void)
|
||||
return;
|
||||
|
||||
host_has_ipv6 = true;
|
||||
VIR_FORCE_CLOSE(fd);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
int socket(int domain,
|
||||
|
||||
Reference in new issue
Block a user