X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/6be5515e6a456abf35795452bd824e74dbb43dc8..681aaf7a9a3eaa9e087b276ca1b52a2964e24181:/src/tests/ipacl-test.c diff --git a/src/tests/ipacl-test.c b/src/tests/ipacl-test.c index 74bafd75..fa190cf0 100644 --- a/src/tests/ipacl-test.c +++ b/src/tests/ipacl-test.c @@ -17,8 +17,9 @@ #include #endif -#include +#include #include +#include #include #include @@ -30,7 +31,7 @@ static void do_ip_acl_check(const char *s, int fd, int expected) { result = pa_ip_acl_check(acl, fd); pa_ip_acl_free(acl); - printf("%-20s result=%u (should be %u)\n", s, result, expected); + pa_log_info("%-20s result=%u (should be %u)", s, result, expected); pa_assert(result == expected); } @@ -42,6 +43,9 @@ int main(int argc, char *argv[]) { int fd; int r; + if (!getenv("MAKE_CHECK")) + pa_log_set_level(PA_LOG_DEBUG); + fd = socket(PF_INET, SOCK_STREAM, 0); pa_assert(fd >= 0); @@ -65,7 +69,7 @@ int main(int argc, char *argv[]) { #ifdef HAVE_IPV6 if ( (fd = socket(PF_INET6, SOCK_STREAM, 0)) < 0 ) { - printf("Unable to open IPv6 socket, IPv6 tests ignored"); + pa_log_error("Unable to open IPv6 socket, IPv6 tests ignored"); return 0; }