[PATCH] malloc: Run tst-malloc-stats-cancellation via test-driver.c
Carlos O'Donell
carlos@redhat.com
Wed Apr 7 00:21:12 GMT 2021
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.
More information about the Libc-alpha
mailing list