public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Arjun Shankar <arjun.is@lostca.se>
To: libc-alpha@sourceware.org
Subject: [PATCH] malloc: Run tst-malloc-stats-cancellation via test-driver.c
Date: Tue, 6 Apr 2021 22:39:48 +0000	[thread overview]
Message-ID: <20210406223947.GA39160@aloka.lostca.se> (raw)

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.

 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>
-- 
2.30.2


             reply	other threads:[~2021-04-06 22:39 UTC|newest]

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

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=20210406223947.GA39160@aloka.lostca.se \
    --to=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).