From patchwork Wed Jun 7 11:41:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arjun Shankar X-Patchwork-Id: 20823 Received: (qmail 118077 invoked by alias); 7 Jun 2017 11:41:57 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 117155 invoked by uid 89); 7 Jun 2017 11:41:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=arjun, H*r:120, H*F:D*se X-HELO: aloka.lostca.se Date: Wed, 7 Jun 2017 11:41:39 +0000 From: Arjun Shankar To: libc-alpha@sourceware.org Subject: [PATCH] Use test-driver in sysdeps/unix/sysv/linux/tst-clone2.c Message-ID: <20170607114139.GA65837@aloka.lostca.se> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) 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 * 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 /* For _STACK_GROWS_{UP,DOWN}. */ -static int do_test (void); - -#define TEST_FUNCTION do_test () -#include +#include static int sig; static int pipefd[2]; @@ -145,3 +142,5 @@ do_test (void) return ret; } + +#include