From: Arjun Shankar Date: Tue, 6 Apr 2021 22:30:11 +0000 (+0200) Subject: malloc: Run tst-malloc-stats-cancellation via test-driver.c X-Git-Tag: upstream/2.34~703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a282de11b87fb4ad015c0cd10158555999705f9;p=platform%2Fupstream%2Fglibc.git 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 --- diff --git a/malloc/tst-malloc-stats-cancellation.c b/malloc/tst-malloc-stats-cancellation.c index 9a8f475..725cad6 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