From patchwork Thu Dec 15 16:25:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 18486 Received: (qmail 82723 invoked by alias); 15 Dec 2016 16:26:01 -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 81789 invoked by uid 89); 15 Dec 2016 16:26:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx2.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] Fix assertion failure on test timeout X-Yow: Just imagine you're entering a state-of-the-art CAR WASH!! Date: Thu, 15 Dec 2016 17:25:57 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 * support/support_test_main.c (support_test_main): Don't shadow file-local variable test_pid. diff --git a/support/support_test_main.c b/support/support_test_main.c index e185281eaf..0582230aec 100644 --- a/support/support_test_main.c +++ b/support/support_test_main.c @@ -307,7 +307,7 @@ support_test_main (int argc, char **argv, const struct test_config *config) - set up the timer - fork and execute the function. */ - pid_t test_pid = fork (); + test_pid = fork (); if (test_pid == 0) { /* This is the child. */