public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Move tst-resolv-res_init-multi to xtests
@ 2021-06-22  4:44 Siddhesh Poyarekar
  2021-06-28  4:18 ` [PING][PATCH] " Siddhesh Poyarekar
  2021-06-28  4:38 ` [PATCH] " Florian Weimer
  0 siblings, 2 replies; 4+ messages in thread
From: Siddhesh Poyarekar @ 2021-06-22  4:44 UTC (permalink / raw)
  To: libc-alpha

Tests that need network access may cause false failures due to network
glitches because of which they are typically added as xtests.  See for
example posix/tst-getaddrinfo{4,5}.c.  Move tst-resolv-res_init-multi
also to xtests so that it is not executed in a regular test run.
---
 resolv/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/resolv/Makefile b/resolv/Makefile
index 3fbc320ee1..3e17fda571 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -57,7 +57,6 @@ tests += \
   tst-resolv-edns \
   tst-resolv-network \
   tst-resolv-nondecimal \
-  tst-resolv-res_init-multi \
   tst-resolv-search \
   tst-resolv-trailing \
 
@@ -103,6 +102,9 @@ xtests += tst-resolv-qtypes
 
 # This test has dropped packet tests and runs for a long time.
 xtests += tst-resolv-rotate
+
+# This test needs a functioning network to succeed.
+xtests += tst-resolv-res_init-multi
 endif
 extra-libs-others = $(extra-libs)
 libresolv-routines := res_comp res_debug \
-- 
2.31.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PING][PATCH] Move tst-resolv-res_init-multi to xtests
  2021-06-22  4:44 [PATCH] Move tst-resolv-res_init-multi to xtests Siddhesh Poyarekar
@ 2021-06-28  4:18 ` Siddhesh Poyarekar
  2021-06-28  4:38 ` [PATCH] " Florian Weimer
  1 sibling, 0 replies; 4+ messages in thread
From: Siddhesh Poyarekar @ 2021-06-28  4:18 UTC (permalink / raw)
  To: libc-alpha

Hi, any objections to this move?

Siddhesh

On 6/22/21 10:14 AM, Siddhesh Poyarekar via Libc-alpha wrote:
> Tests that need network access may cause false failures due to network
> glitches because of which they are typically added as xtests.  See for
> example posix/tst-getaddrinfo{4,5}.c.  Move tst-resolv-res_init-multi
> also to xtests so that it is not executed in a regular test run.
> ---
>   resolv/Makefile | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/resolv/Makefile b/resolv/Makefile
> index 3fbc320ee1..3e17fda571 100644
> --- a/resolv/Makefile
> +++ b/resolv/Makefile
> @@ -57,7 +57,6 @@ tests += \
>     tst-resolv-edns \
>     tst-resolv-network \
>     tst-resolv-nondecimal \
> -  tst-resolv-res_init-multi \
>     tst-resolv-search \
>     tst-resolv-trailing \
>   
> @@ -103,6 +102,9 @@ xtests += tst-resolv-qtypes
>   
>   # This test has dropped packet tests and runs for a long time.
>   xtests += tst-resolv-rotate
> +
> +# This test needs a functioning network to succeed.
> +xtests += tst-resolv-res_init-multi
>   endif
>   extra-libs-others = $(extra-libs)
>   libresolv-routines := res_comp res_debug \
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Move tst-resolv-res_init-multi to xtests
  2021-06-22  4:44 [PATCH] Move tst-resolv-res_init-multi to xtests Siddhesh Poyarekar
  2021-06-28  4:18 ` [PING][PATCH] " Siddhesh Poyarekar
@ 2021-06-28  4:38 ` Florian Weimer
  2021-06-28  4:45   ` Siddhesh Poyarekar
  1 sibling, 1 reply; 4+ messages in thread
From: Florian Weimer @ 2021-06-28  4:38 UTC (permalink / raw)
  To: Siddhesh Poyarekar via Libc-alpha; +Cc: Siddhesh Poyarekar

* Siddhesh Poyarekar via Libc-alpha:

> Tests that need network access may cause false failures due to network
> glitches because of which they are typically added as xtests.  See for
> example posix/tst-getaddrinfo{4,5}.c.  Move tst-resolv-res_init-multi
> also to xtests so that it is not executed in a regular test run.

The comment in the test says that it does not matter whether the lookup
succeeds.  If this test fails, this could point to a real problem.

Thanks,
Florian


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Move tst-resolv-res_init-multi to xtests
  2021-06-28  4:38 ` [PATCH] " Florian Weimer
@ 2021-06-28  4:45   ` Siddhesh Poyarekar
  0 siblings, 0 replies; 4+ messages in thread
From: Siddhesh Poyarekar @ 2021-06-28  4:45 UTC (permalink / raw)
  To: Florian Weimer, Siddhesh Poyarekar via Libc-alpha

On 6/28/21 10:08 AM, Florian Weimer via Libc-alpha wrote:
> * Siddhesh Poyarekar via Libc-alpha:
> 
>> Tests that need network access may cause false failures due to network
>> glitches because of which they are typically added as xtests.  See for
>> example posix/tst-getaddrinfo{4,5}.c.  Move tst-resolv-res_init-multi
>> also to xtests so that it is not executed in a regular test run.
> 
> The comment in the test says that it does not matter whether the lookup
> succeeds.  If this test fails, this could point to a real problem.

Ahh, I should have recorded what the failure was; I don't remember it 
anymore.  It turned up when my network went down in the middle of a 
`make check` run.

Siddhesh

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-28  4:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22  4:44 [PATCH] Move tst-resolv-res_init-multi to xtests Siddhesh Poyarekar
2021-06-28  4:18 ` [PING][PATCH] " Siddhesh Poyarekar
2021-06-28  4:38 ` [PATCH] " Florian Weimer
2021-06-28  4:45   ` Siddhesh Poyarekar

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).