public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Szabolcs Nagy <szabolcs.nagy@arm.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH v2 12/13] resolv: Add new tst-resolv-invalid-cname
Date: Tue, 30 Aug 2022 13:13:25 +0200	[thread overview]
Message-ID: <87h71u56i2.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <Yw3tmZUm3kr6IV9v@arm.com> (Szabolcs Nagy's message of "Tue, 30 Aug 2022 11:59:37 +0100")

* Szabolcs Nagy:

> The 08/26/2022 12:34, Florian Weimer via Libc-alpha wrote:
>> This test checks resolution through CNAME chains that do not contain
>> host names (bug 12154).
>> 
>> Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
>> ---
>>  resolv/Makefile                   |   3 +
>>  resolv/tst-resolv-invalid-cname.c | 406 ++++++++++++++++++++++++++++++
>>  2 files changed, 409 insertions(+)
>>  create mode 100644 resolv/tst-resolv-invalid-cname.c
> ...
>> +static const char *
>> +test_mode_to_string (enum test_mode mode)
>> +{
>> +  switch (mode)
>> +    {
>> +    case byname:
>> +      return "byname";
>> +    case byname2:
>> +      return "byname2";
>> +    case gai:
>> +      return "gai";
>> +    case gai_canon:
>> +      return "gai_canon";
>> +    case test_mode_num:
>> +      /* Report error below.  */
>> +    }
>> +  FAIL_EXIT1 ("invalid test_mode: %d", mode);
>> +}
>
> with gcc-8 i see build failure like
>
> tst-resolv-invalid-cname.c: In function 'test_mode_to_string':
> tst-resolv-invalid-cname.c:164:10: error: label at end of compound statement
>      case test_mode_num:
>           ^~~~~~~~~~~~~
> make[2]: *** [../o-iterator.mk:9: /work/glibc-aarch64-linux/build/build/resolv/tst-resolv-invalid-cname.o] Error 1

Ugh, not again.  I will fix shortly.

Thanks,
Florian


  reply	other threads:[~2022-08-30 11:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26 10:33 [PATCH v2 00/13] nss_dns: Fix handling of non-host CNAMEs (bug 12154) Florian Weimer
2022-08-26 10:33 ` [PATCH v2 01/13] resolv: Add tst-resolv-byaddr for testing reverse lookup Florian Weimer
2022-08-29 19:56   ` Siddhesh Poyarekar
2022-08-26 10:33 ` [PATCH v2 02/13] resolv: Add tst-resolv-aliases Florian Weimer
2022-08-29 19:57   ` Siddhesh Poyarekar
2022-08-26 10:33 ` [PATCH v2 03/13] resolv: Add internal __res_binary_hnok function Florian Weimer
2022-08-26 10:33 ` [PATCH v2 04/13] resolv: Add the __ns_samebinaryname function Florian Weimer
2022-08-26 10:33 ` [PATCH v2 05/13] resolv: Add internal __ns_name_length_uncompressed function Florian Weimer
2022-08-26 10:33 ` [PATCH v2 06/13] resolv: Add DNS packet parsing helpers geared towards wire format Florian Weimer
2022-08-26 10:33 ` [PATCH v2 07/13] nss_dns: Split getanswer_ptr from getanswer_r Florian Weimer
2022-08-26 10:33 ` [PATCH v2 08/13] nss_dns: Rewrite _nss_dns_gethostbyaddr2_r and getanswer_ptr Florian Weimer
2022-08-26 10:33 ` [PATCH v2 09/13] nss_dns: Remove remnants of IPv6 address mapping Florian Weimer
2022-08-26 10:34 ` [PATCH v2 10/13] nss_dns: Rewrite getanswer_r to match getanswer_ptr (bug 12154, bug 29305) Florian Weimer
2022-08-26 10:34 ` [PATCH v2 11/13] nss_dns: In gaih_getanswer_slice, skip strange aliases (bug 12154) Florian Weimer
2022-08-26 10:34 ` [PATCH v2 12/13] resolv: Add new tst-resolv-invalid-cname Florian Weimer
2022-08-30 10:59   ` Szabolcs Nagy
2022-08-30 11:13     ` Florian Weimer [this message]
2022-08-26 10:34 ` [PATCH v2 13/13] nss_dns: Rewrite _nss_dns_gethostbyname4_r using current interfaces Florian Weimer
2022-08-29 20:01   ` Siddhesh Poyarekar

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=87h71u56i2.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=szabolcs.nagy@arm.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).