Use test-driver in sysdeps/unix/sysv/linux/tst-clone2.c
Commit Message
This test already uses macros defined in support/check.h. Having it use this
and test-skeleton.c at the same complicates backports somewhat.
ChangeLog:
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.
---
sysdeps/unix/sysv/linux/tst-clone2.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
Comments
On 06/07/2017 01:41 PM, Arjun Shankar wrote:
> This test already uses macros defined in support/check.h. Having it use this
> and test-skeleton.c at the same complicates backports somewhat.
>
> ChangeLog:
>
> 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.
Looks good to me. Please commit.
Thanks,
Florian
@@ -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>