malloc: Run tst-malloc-stats-cancellation via test-driver.c
authorArjun Shankar <arjun@redhat.com>
Tue, 6 Apr 2021 22:30:11 +0000 (00:30 +0200)
committerArjun Shankar <arjun@redhat.com>
Wed, 7 Apr 2021 00:35:50 +0000 (02:35 +0200)
This allows the test to time out in case it hangs.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
malloc/tst-malloc-stats-cancellation.c

index 9a8f475..725cad6 100644 (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>