From patchwork Wed May 10 07:41:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 20363 Received: (qmail 70326 invoked by alias); 10 May 2017 07:41:21 -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 70296 invoked by uid 89); 10 May 2017 07:41:20 -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, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=1175 X-HELO: mx1.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] Use test-driver in ntpl/tst-fork1.c X-Yow: I'd like some JUNK FOOD... and then I want to be ALONE -- Date: Wed, 10 May 2017 09:41:19 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 This avoids stalling the testsuite run when running it with the qemu linux-user emulation. Committed. Andreas. * nptl/tst-fork1.c: Include . (main): Rename to do_test and make static. diff --git a/nptl/tst-fork1.c b/nptl/tst-fork1.c index 9bf1132c7b..86c0f555ac 100644 --- a/nptl/tst-fork1.c +++ b/nptl/tst-fork1.c @@ -64,8 +64,8 @@ thread_function (void * arg) #define N 5 static const int t[N] = { 7, 6, 5, 4, 3 }; -int -main (void) +static int +do_test (void) { pthread_t th[N]; int i; @@ -117,3 +117,5 @@ main (void) return result; } + +#include