test: avoid AF_LOCAL

Linux specific and practically an alias of AF_UNIX which is POSIX

PR-URL: https://github.com/libuv/libuv/pull/2388

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
Carlo Marcelo Arenas Belón 2019-07-25 10:36:12 -07:00 committed by Saúl Ibarra Corretgé
parent bf86d5fbaf
commit ef218cede9

View File

@ -171,7 +171,7 @@ TEST_IMPL(pipe_getsockname_abstract) {
socklen_t sun_len;
char abstract_pipe[] = "\0test-pipe";
sock = socket(AF_LOCAL, SOCK_STREAM, 0);
sock = socket(AF_UNIX, SOCK_STREAM, 0);
ASSERT(sock != -1);
sun_len = sizeof sun;