From: Evgeny Sinelnikov <sin@altlinux.org> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: [devel] Из-за настроек IPv6 в сборочнице возникакет ошибка Date: Fri, 3 Nov 2017 06:06:53 +0400 Message-ID: <CAK42-GpewYccy31tc2vazOed7pqvqbHcrgG_9A-qMZodU87Waw@mail.gmail.com> (raw) Здравствуйте, Из-за настроек сети в сборочнице, с ошибкой Address family not supported by protocol не отрабатывает вот такой тест: #ifdef HAVE_IPV6 static void test_socket_getsockname6(void **state) { struct torture_address addr = { .sa_socklen = sizeof(struct sockaddr_in), }; int rc; int s; (void) state; /* unused */ s = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); if (s < 0) { print_message ( "ERROR socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP) = %s\n", strerror(errno)); } else { print_message ("OK socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)\n"); } assert_int_not_equal(s, -1); rc = getsockname(s, &addr.sa.s, &addr.sa_socklen); assert_return_code(rc, errno); assert_int_equal(addr.sa.in6.sin6_family, AF_INET6); } #endif У меня, в локальной хешере, этот тест отрабатывает. Как быть? http://git.altlinux.org/tasks/193039/build/100/x86_64/log 5: Test command: /usr/src/RPM/BUILD/socket_wrapper-1.1.8/obj/tests/test_echo_tcp_socket 5: Environment variables: 5: LD_PRELOAD=/usr/src/RPM/BUILD/socket_wrapper-1.1.8/obj/src/libsocket_wrapper.so 5: Test timeout computed to be: 1500 5: [==========] Running 2 test(s). 5: [ RUN ] test_socket_getsockname 5: [ OK ] test_socket_getsockname 5: [ RUN ] test_socket_getsockname6 5: ERROR socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP) = Address family not supported by protocol 5: [ ERROR ] --- 0xffffffffffffffff == 0xffffffffffffffff 5: [ LINE ] --- /usr/src/RPM/BUILD/socket_wrapper-1.1.8/tests/test_echo_tcp_socket.c:54: error: Failure! 5: [ FAILED ] test_socket_getsockname6 5: [==========] 2 test(s) run. 5: [ PASSED ] 1 test(s). 5: [ FAILED ] 1 test(s), listed below: 5: [ FAILED ] test_socket_getsockname6 5: 5: 1 FAILED TEST(S) 5/19 Test #5: test_echo_tcp_socket ...............***Failed 0.00 sec test 6 Start 6: test_echo_tcp_connect -- Sin (Sinelnikov Evgeny)
next reply other threads:[~2017-11-03 2:06 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-11-03 2:06 Evgeny Sinelnikov [this message] 2017-11-03 2:37 ` Dmitry V. Levin 2017-11-03 4:30 ` Alexey V. Vissarionov 2017-11-03 4:48 ` Anton Farygin 2017-11-03 4:59 ` Alexey V. Vissarionov 2017-11-03 5:02 ` Anton Farygin 2017-11-03 11:46 ` Dmitry V. Levin 2017-11-03 16:10 ` Alexey V. Vissarionov 2017-11-03 19:07 ` Dmitry V. Levin 2017-11-04 4:11 ` Alexei Takaseev 2017-11-04 10:07 ` Sergey Y. Afonin 2017-11-04 10:50 ` Dmitry V. Levin 2017-11-04 10:58 ` Dmitry V. Levin 2017-11-06 14:11 ` Evgeny Sinelnikov 2019-12-17 6:52 ` Anton Farygin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CAK42-GpewYccy31tc2vazOed7pqvqbHcrgG_9A-qMZodU87Waw@mail.gmail.com \ --to=sin@altlinux.org \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git