From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2012) id 74DF23858012; Wed, 7 Apr 2021 00:36:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74DF23858012 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Arjun Shankar To: glibc-cvs@sourceware.org Subject: [glibc] malloc: Run tst-malloc-stats-cancellation via test-driver.c X-Act-Checkin: glibc X-Git-Author: Arjun Shankar X-Git-Refname: refs/heads/master X-Git-Oldrev: e9eeeb3a58df36a57c84f16ea89f92736e1935cb X-Git-Newrev: 0a282de11b87fb4ad015c0cd10158555999705f9 Message-Id: <20210407003656.74DF23858012@sourceware.org> Date: Wed, 7 Apr 2021 00:36:56 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2021 00:36:56 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0a282de11b87fb4ad015c0cd10158555999705f9 commit 0a282de11b87fb4ad015c0cd10158555999705f9 Author: Arjun Shankar 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 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