From patchwork Sun Sep 10 19:15:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 812176 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-84428-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="SNtzsyKr"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xr13w19qKz9t38 for ; Mon, 11 Sep 2017 05:15:39 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=hqacIjbLNvfXu3oXA5ysj8nikinzno7tkUFMQqgpD+2RzaRxT+SGS VG/DuIkaDujaSxECwObTb2fxueabaKJOa6k0ae/E16ce4QzfCRZ3cXDAMWo22EFy 4sNtuBI8UmXsSxG3RIkKpobCVM0JFiOOL+dtmf55oh90jXpVZuIKKE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=NTc0LWGxD6aimvLS0RksM91Blxo=; b=SNtzsyKrsVz6letXy/inFf/7+LGd ZhgUUN5myvRVlmaC0MmLmZDQurx2Wyt1c/enjIT/7BWahNjU1ro+N4Loo4yI05ko XvHdRAobfQIMxzZwR58sHQd4kvUFoUKqA9uQ7oUyD/pcdJYT/l0/T5i+4+3b3gZk eCEBSkUquqVTkBA= Received: (qmail 41349 invoked by alias); 10 Sep 2017 19:15:31 -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 32241 invoked by uid 89); 10 Sep 2017 19:15:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=Hx-languages-length:1686 X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] sunrpc/tst-udp-nonblocking: Fix timeout value Date: Sun, 10 Sep 2017 21:15:21 +0200 Message-Id: <20170910191521.18417-1-samuel.thibault@ens-lyon.org> This a follow-up to 00c3da4 ('sunrpc/tst-udp-timeout: Fix timeout value') * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75 seconds. --- ChangeLog | 2 ++ sunrpc/tst-udp-nonblocking.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7a2f865b7c..555c3df592 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5 seconds. + * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75 + seconds. * elf/rtld-Rules: Fix $(error) use. 2017-09-09 Mike FABIAN diff --git a/sunrpc/tst-udp-nonblocking.c b/sunrpc/tst-udp-nonblocking.c index c6a68498f7..46237a2f68 100644 --- a/sunrpc/tst-udp-nonblocking.c +++ b/sunrpc/tst-udp-nonblocking.c @@ -257,9 +257,9 @@ do_test (void) /* Shorter timeout to prefer this server. These timeouts must be much shorter than the 5-second per-response timeout configured with clntudp_create. */ - query.timeout_ms = 700; + query.timeout_ms = 750; else - query.timeout_ms = 1400; + query.timeout_ms = 1500; struct test_response response = { 0 }; /* NB: Do not check the return value. The server reply will prove that the call worked. */ @@ -289,8 +289,8 @@ do_test (void) if (test_verbose) printf ("info: send/receive took %f seconds\n", after_pings - before_pings); - /* Expected timeout is 0.7 seconds. */ - TEST_VERIFY (0.7 <= after_pings - before_pings); + /* Expected timeout is 0.75 seconds. */ + TEST_VERIFY (0.75 <= after_pings - before_pings); TEST_VERIFY (after_pings - before_pings < 1.2); uint32_t xid;