ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Из-за настроек IPv6 в сборочнице возникакет ошибка
Date: Fri, 3 Nov 2017 05:37:04 +0300
Message-ID: <20171103023704.GA24120@altlinux.org> (raw)
In-Reply-To: <CAK42-GpewYccy31tc2vazOed7pqvqbHcrgG_9A-qMZodU87Waw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

On Fri, Nov 03, 2017 at 06:06:53AM +0400, Evgeny Sinelnikov wrote:
> Здравствуйте,
> 
> Из-за настроек сети в сборочнице, с ошибкой 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
> 
> У меня, в локальной хешере, этот тест отрабатывает. Как быть?

Наверное, скипать этот тест в случае если errno == EAFNOSUPPORT.


-- 
ldv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2017-11-03  2:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-03  2:06 Evgeny Sinelnikov
2017-11-03  2:37 ` Dmitry V. Levin [this message]
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=20171103023704.GA24120@altlinux.org \
    --to=ldv@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