mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Ignore IPv6 tests, if IPv6 was built in but the system doesn't have it.
This removes a test failure when an IPv6-enabled PulseAudio is tested on a system where IPv6 is not enabled in kernel.
This commit is contained in:
parent
cd375da1db
commit
080f6308f2
1 changed files with 4 additions and 2 deletions
|
|
@ -91,8 +91,10 @@ int main(int argc, char *argv[]) {
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
#ifdef HAVE_IPV6
|
#ifdef HAVE_IPV6
|
||||||
fd = socket(PF_INET6, SOCK_STREAM, 0);
|
if ( (fd = socket(PF_INET6, SOCK_STREAM, 0)) < 0 ) {
|
||||||
assert(fd >= 0);
|
printf("Unable to open IPv6 socket, IPv6 tests ignored");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
memset(&sa6, 0, sizeof(sa6));
|
memset(&sa6, 0, sizeof(sa6));
|
||||||
sa6.sin6_family = AF_INET6;
|
sa6.sin6_family = AF_INET6;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue