|
|
84f64e |
nptl/tst-audit-threads: Switch to <support/test-driver.c>
|
|
|
84f64e |
|
|
|
84f64e |
The downstream version of test-skeleton.c does not include
|
|
|
84f64e |
<support/support.h> for backwards compatibility reasons, leading to a
|
|
|
84f64e |
compilation failure:
|
|
|
84f64e |
|
|
|
84f64e |
tst-audit-threads.c: In function 'do_test':
|
|
|
84f64e |
tst-audit-threads.c:87:3: error: implicit declaration of function 'xcalloc' [-Werror=implicit-function-declaration]
|
|
|
84f64e |
threads = (pthread_t *) xcalloc (num_threads, sizeof(pthread_t));
|
|
|
84f64e |
^
|
|
|
84f64e |
tst-audit-threads.c:87:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
|
|
|
84f64e |
threads = (pthread_t *) xcalloc (num_threads, sizeof(pthread_t));
|
|
|
84f64e |
^
|
|
|
84f64e |
|
|
|
84f64e |
diff --git a/nptl/tst-audit-threads.c b/nptl/tst-audit-threads.c
|
|
|
84f64e |
index e4bf433bd85f3715..42742d51e4bc06a3 100644
|
|
|
84f64e |
--- a/nptl/tst-audit-threads.c
|
|
|
84f64e |
+++ b/nptl/tst-audit-threads.c
|
|
|
84f64e |
@@ -25,19 +25,12 @@
|
|
|
84f64e |
the relocation resolution caching code in the dynamic loader i.e.
|
|
|
84f64e |
_dl_runtime_profile and _dl_profile_fixup. */
|
|
|
84f64e |
|
|
|
84f64e |
+#include <support/support.h>
|
|
|
84f64e |
#include <support/xthread.h>
|
|
|
84f64e |
#include <strings.h>
|
|
|
84f64e |
#include <stdlib.h>
|
|
|
84f64e |
#include <sys/sysinfo.h>
|
|
|
84f64e |
|
|
|
84f64e |
-static int do_test (void);
|
|
|
84f64e |
-
|
|
|
84f64e |
-/* This test usually takes less than 3s to run. However, there are cases that
|
|
|
84f64e |
- take up to 30s. */
|
|
|
84f64e |
-#define TIMEOUT 60
|
|
|
84f64e |
-#define TEST_FUNCTION do_test ()
|
|
|
84f64e |
-#include "../test-skeleton.c"
|
|
|
84f64e |
-
|
|
|
84f64e |
/* Declare the functions we are going to call. */
|
|
|
84f64e |
#define externnum
|
|
|
84f64e |
#include "tst-audit-threads.h"
|
|
|
84f64e |
@@ -95,3 +88,8 @@ do_test (void)
|
|
|
84f64e |
|
|
|
84f64e |
return 0;
|
|
|
84f64e |
}
|
|
|
84f64e |
+
|
|
|
84f64e |
+/* This test usually takes less than 3s to run. However, there are cases that
|
|
|
84f64e |
+ take up to 30s. */
|
|
|
84f64e |
+#define TIMEOUT 60
|
|
|
84f64e |
+#include <support/test-driver.c>
|