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