projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9eeeb3
)
malloc: Run tst-malloc-stats-cancellation via test-driver.c
author
Arjun Shankar
<arjun@redhat.com>
Tue, 6 Apr 2021 22:30:11 +0000
(
00:30
+0200)
committer
Arjun 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
patch
|
blob
|
history
diff --git
a/malloc/tst-malloc-stats-cancellation.c
b/malloc/tst-malloc-stats-cancellation.c
index 9a8f475830b16af205ffca4ad2c67d0e10e10ae4..725cad6498f3cdf8440ce45f6cd198cdfe9dd38e 100644
(file)
--- 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>