public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] malloc: Run tst-malloc-stats-cancellation via test-driver.c
@ 2021-04-07 0:36 Arjun Shankar
0 siblings, 0 replies; only message in thread
From: Arjun Shankar @ 2021-04-07 0:36 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0a282de11b87fb4ad015c0cd10158555999705f9
commit 0a282de11b87fb4ad015c0cd10158555999705f9
Author: Arjun Shankar <arjun@redhat.com>
Date: Wed Apr 7 00:30:11 2021 +0200
malloc: Run tst-malloc-stats-cancellation via test-driver.c
This allows the test to time out in case it hangs.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diff:
---
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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-07 0:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 0:36 [glibc] malloc: Run tst-malloc-stats-cancellation via test-driver.c Arjun Shankar
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).