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>
This commit is contained in:
Arjun Shankar 2021-04-07 00:30:11 +02:00
parent e9eeeb3a58
commit 0a282de11b

View File

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