about summary refs log tree commit diff
path: root/nptl/tst-audit-threads.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-01-02 16:09:26 +0100
committerFlorian Weimer <fweimer@redhat.com>2019-01-02 16:09:26 +0100
commit66081e383c9b0008ff3a8fa40c15ab68a26f45b0 (patch)
tree1f4b1ad05fb813de38dcba387e869a1c6bfb139d /nptl/tst-audit-threads.c
parent6ef3d2255864c7dbfa74e1ed7fc09e3acea42ca3 (diff)
downloadglibc-66081e383c9b0008ff3a8fa40c15ab68a26f45b0.tar.gz
glibc-66081e383c9b0008ff3a8fa40c15ab68a26f45b0.tar.xz
glibc-66081e383c9b0008ff3a8fa40c15ab68a26f45b0.zip
nptl/tst-audit-threads: Switch to <support/test-driver.c>
This is a new test, so it should use the test driver in the support
subdirectory.
Diffstat (limited to 'nptl/tst-audit-threads.c')
-rw-r--r--nptl/tst-audit-threads.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/nptl/tst-audit-threads.c b/nptl/tst-audit-threads.c
index d6ff5d5c7f..ad10fbf652 100644
--- a/nptl/tst-audit-threads.c
+++ b/nptl/tst-audit-threads.c
@@ -25,19 +25,12 @@
    the relocation resolution caching code in the dynamic loader i.e.
    _dl_runtime_profile and _dl_profile_fixup.  */
 
+#include <support/support.h>
 #include <support/xthread.h>
 #include <strings.h>
 #include <stdlib.h>
 #include <sys/sysinfo.h>
 
-static int do_test (void);
-
-/* This test usually takes less than 3s to run.  However, there are cases that
-   take up to 30s.  */
-#define TIMEOUT 60
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
-
 /* Declare the functions we are going to call.  */
 #define externnum
 #include "tst-audit-threads.h"
@@ -95,3 +88,8 @@ do_test (void)
 
   return 0;
 }
+
+/* This test usually takes less than 3s to run.  However, there are cases that
+   take up to 30s.  */
+#define TIMEOUT 60
+#include <support/test-driver.c>