From patchwork Wed May 31 08:11:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 20648 Received: (qmail 51864 invoked by alias); 31 May 2017 08:11:56 -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 51844 invoked by uid 89); 31 May 2017 08:11:54 -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= X-HELO: mx1.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] Use test-driver in nptl/tst-fork3.c References: X-Yow: You were s'posed to laugh! Date: Wed, 31 May 2017 10:11:55 +0200 In-Reply-To: (Andreas Schwab's message of "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 test also sometimes causes the qemu linux-user emulation to hang. Committed. Andreas. * nptl/tst-fork3.c: Include . (main): Rename to do_test and make static. diff --git a/nptl/tst-fork3.c b/nptl/tst-fork3.c index 8fee264436..33d93f2a04 100644 --- a/nptl/tst-fork3.c +++ b/nptl/tst-fork3.c @@ -87,8 +87,8 @@ tf1 (void *arg) } -int -main (void) +static int +do_test (void) { initial_pid = getpid (); @@ -104,3 +104,5 @@ main (void) return 1; } + +#include