This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Use test-driver in sysdeps/unix/sysv/linux/tst-clone2.c

This test already uses macros defined in support/check.h. Having it use this
and test-skeleton.c at the same complicates backports somewhat.


2017-06-07  Arjun Shankar  <>

	* sysdeps/unix/sysv/linux/tst-clone2.c: Do not
	include test-skeleton.c.
	Include support/check.h and support/test-driver.c.
 sysdeps/unix/sysv/linux/tst-clone2.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sysdeps/unix/sysv/linux/tst-clone2.c b/sysdeps/unix/sysv/linux/tst-clone2.c
index 4e9379b..f53efd5 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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]