about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArjun Shankar <arjun.is@lostca.se>2017-06-06 17:23:21 +0200
committerArjun Shankar <arjun.is@lostca.se>2017-06-07 14:19:53 +0200
commit7b60553e360731338631ccdda71590ac5deca137 (patch)
treee14542e28cbcf4101845e8f01564dda489721e5d
parent206e03248c3f575e83c13f2aa709fa55c67e51c2 (diff)
downloadglibc-7b60553e360731338631ccdda71590ac5deca137.tar.gz
glibc-7b60553e360731338631ccdda71590ac5deca137.tar.xz
glibc-7b60553e360731338631ccdda71590ac5deca137.zip
Use test-driver in sysdeps/unix/sysv/linux/tst-clone2.c
(cherry picked from commit fdc543919a3d8578631a492e1227c2cd8f5ecec7)
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/unix/sysv/linux/tst-clone2.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1bb6135f35..33d05e4878 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-06-07  Arjun Shankar  <arjun.is@lostca.se>
+
+	* sysdeps/unix/sysv/linux/tst-clone2.c: Do not
+	include test-skeleton.c.
+	Include support/check.h and support/test-driver.c.
+
 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
diff --git a/sysdeps/unix/sysv/linux/tst-clone2.c b/sysdeps/unix/sysv/linux/tst-clone2.c
index 0da9e54ba2..1472311947 100644
--- a/sysdeps/unix/sysv/linux/tst-clone2.c
+++ b/sysdeps/unix/sysv/linux/tst-clone2.c
@@ -32,10 +32,7 @@
 
 #include <stackinfo.h>  /* For _STACK_GROWS_{UP,DOWN}.  */
 
-static int do_test (void);
-
-#define TEST_FUNCTION do_test ()
-#include <test-skeleton.c>
+#include <support/check.h>
 
 static int sig;
 static int pipefd[2];
@@ -145,3 +142,5 @@ do_test (void)
 
   return ret;
 }
+
+#include <support/test-driver.c>