]> xenbits.xensource.com Git - libvirt.git/commit
Fix test failure when no IPv6 is avail
authorDoug Goldstein <cardoe@cardoe.com>
Sun, 22 Jul 2012 17:04:16 +0000 (12:04 -0500)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 23 Jul 2012 08:37:01 +0000 (10:37 +0200)
commitfaffe26909d8e5cde7e80e5a8f33296ed56dcfc7
treee4ba3cd4e5e538707ff643bc7a12c03b59467592
parentf9ce7dad60e9988e0d7ed9b7a70a39af5f9cb5cf
Fix test failure when no IPv6 is avail

When the system doesn't have IPv6 available (e.g. not built into the
kernel or the module isn't loaded), you can not create an IPv6 socket.
The test determines earlier on that IPv6 isn't available then goes and
creates a socket. This makes socket creation conditional on IPv6
availability.
tests/virnetsockettest.c