aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjun Shankar <arjun@redhat.com>2021-04-07 00:30:11 +0200
committerArjun Shankar <arjun@redhat.com>2021-04-07 02:35:50 +0200
commit0a282de11b87fb4ad015c0cd10158555999705f9 (patch)
treeb4232a45864032b6174ff47c09c81979fa797c70
parente9eeeb3a58df36a57c84f16ea89f92736e1935cb (diff)
downloadglibc-0a282de11b87fb4ad015c0cd10158555999705f9.zip
glibc-0a282de11b87fb4ad015c0cd10158555999705f9.tar.gz
glibc-0a282de11b87fb4ad015c0cd10158555999705f9.tar.bz2
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>
-rw-r--r--malloc/tst-malloc-stats-cancellation.c6
1 files changed, 4 insertions, 2 deletions
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 <support/test-driver.c>