From patchwork Wed Aug 27 06:01:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Brodkorb X-Patchwork-Id: 383339 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 0E60A1400AF for ; Wed, 27 Aug 2014 16:10:39 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 18D0D94B66; Wed, 27 Aug 2014 06:10:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gjEwmZb07Kx2; Wed, 27 Aug 2014 06:10:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6EA1994B6D; Wed, 27 Aug 2014 06:10:17 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8FA141C107A for ; Wed, 27 Aug 2014 06:10:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8BBE5947DF for ; Wed, 27 Aug 2014 06:10:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T8-eTXBMhbyu for ; Wed, 27 Aug 2014 06:10:06 +0000 (UTC) X-Greylist: delayed 00:07:50 by SQLgrey-1.7.6 Received: from helium.waldemar-brodkorb.de (helium.waldemar-brodkorb.de [89.238.66.15]) by hemlock.osuosl.org (Postfix) with ESMTPS id D011E94719 for ; Wed, 27 Aug 2014 06:10:05 +0000 (UTC) Received: by helium.waldemar-brodkorb.de (Postfix, from userid 1000) id 7AA3B1053B; Wed, 27 Aug 2014 08:02:14 +0200 (CEST) From: Waldemar Brodkorb To: uclibc@uclibc.org Subject: [PATCH 11/12] get out of the endless while loop, when bind failed Date: Wed, 27 Aug 2014 08:01:49 +0200 Message-Id: <1409119310-22929-12-git-send-email-wbx@openadk.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409119310-22929-1-git-send-email-wbx@openadk.org> References: <1409119310-22929-1-git-send-email-wbx@openadk.org> Cc: Waldemar Brodkorb X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: uclibc-bounces@uclibc.org From: Waldemar Brodkorb When bind() fails in this test, then /tmp get filled up with temp files and upcoming tests will fail, because they need to create temp files, too. Better exit from the loop. Test still needs to be investigated to fix the failing bind(). Signed-off-by: Waldemar Brodkorb --- test/nptl/tst-cancel4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/nptl/tst-cancel4.c b/test/nptl/tst-cancel4.c index 53abf83..4ba4045 100644 --- a/test/nptl/tst-cancel4.c +++ b/test/nptl/tst-cancel4.c @@ -1015,6 +1015,8 @@ tf_accept (void *arg) if (++tries > 10) { printf ("%s: too many unsuccessful bind calls\n", __FUNCTION__); + /* prevent endless loop, when bind fails forever */ + exit (1); } strcpy (sun.sun_path, "/tmp/tst-cancel4-socket-1-XXXXXX");