public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Carlos O'Donell <carlos@redhat.com>
To: Arjun Shankar <arjun.is@lostca.se>, libc-alpha@sourceware.org
Subject: Re: [PATCH] malloc: Run tst-malloc-stats-cancellation via test-driver.c
Date: Tue, 6 Apr 2021 20:21:12 -0400	[thread overview]
Message-ID: <c392098b-317a-8d0a-b7ec-600375486c08@redhat.com> (raw)
In-Reply-To: <20210406223947.GA39160@aloka.lostca.se>

On 4/6/21 6:39 PM, Arjun Shankar wrote:
> From: Arjun Shankar <arjun@redhat.com>
> 
> This allows the test to time out in case it hangs.
> ---
> I ran into an instance of this test hanging when building glibc on Fedora
> Rawhide for armv7hl.  I am still investigating the cause of that but, in
> the meanwhile, this change is still worth making.
> 

LGTM.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>

>  malloc/tst-malloc-stats-cancellation.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/malloc/tst-malloc-stats-cancellation.c b/malloc/tst-malloc-stats-cancellation.c
> index 9a8f475830..725cad6498 100644
> --- a/malloc/tst-malloc-stats-cancellation.c
> +++ b/malloc/tst-malloc-stats-cancellation.c
> @@ -91,8 +91,8 @@ buffer_threadproc (void *argp)
>  }
>  
>  
> -int
> -main (void)
> +static int
> +do_test (void)
>  {
>    int result = 0, err, real_stderr_fd, bufpipe[2];
>    pthread_t t_thr, b_thr;
> @@ -214,3 +214,5 @@ main (void)
>      }
>    return result;
>  }
> +
> +#include <support/test-driver.c>
> 


-- 
Cheers,
Carlos.


      reply	other threads:[~2021-04-07  0:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06 22:39 Arjun Shankar
2021-04-07  0:21 ` Carlos O'Donell [this message]

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=c392098b-317a-8d0a-b7ec-600375486c08@redhat.com \
    --to=carlos@redhat.com \
    --cc=arjun.is@lostca.se \
    --cc=libc-alpha@sourceware.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
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).