From patchwork Tue Jan 19 12:59:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 59987 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2556332lbb; Tue, 19 Jan 2016 04:59:23 -0800 (PST) X-Received: by 10.55.81.2 with SMTP id f2mr37744215qkb.87.1453208363852; Tue, 19 Jan 2016 04:59:23 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z194si37349629qhz.89.2016.01.19.04.59.23; Tue, 19 Jan 2016 04:59:23 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 102A3615C2; Tue, 19 Jan 2016 12:59:23 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=RK/QWT35; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9BFAD605DB; Tue, 19 Jan 2016 12:59:20 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4181B61622; Tue, 19 Jan 2016 12:59:18 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id 60774615E7 for ; Tue, 19 Jan 2016 12:59:17 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id x4so106929261lbm.0 for ; Tue, 19 Jan 2016 04:59:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=f9UCTHstEgXKjPS095qH4jRQKyq62mFzq2n60eECw8M=; b=RK/QWT35RLizR5GfQOlfXG59VuoRGfDnDIgirCkjVIKo6yII9O6w9QM8fSf/WqJs07 kdu1yvYVlnx/HsZhCpKaux5aLyslvabSnXDRXMX9LUsyhiP0T1dYulZDDkPw73xBo6U5 EEYHY/tniUrHkZM0rpo11NYsShJxc0rI2fo9g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=f9UCTHstEgXKjPS095qH4jRQKyq62mFzq2n60eECw8M=; b=KKbtXc8UqNZmZa143nHQ4eIhCLMqz+g2PPd64bSm8tdG3BvOw0PdN+QKoNmzvWAbES HSeSRaT49l+lIqkYq/Thvt7how0uNza4X+Vr0BF/gezGRRo4c+y3H71x+TZ2GrUHKY59 Fi6TpiNUlG0GvugLbAgjRYLWYDA7mtzbwmPFLJ0EKi/6ai5S1cYR4MB4SeRE6IxSsuLF /rQ8w7PmH64R9NFknJw6cCGI2hV1uoWq6H4EEAYuKb1U6RazWaeJ/+kNlBOMVhmppzX9 ZdQuimnruDJLaao5iRfehHBkCgSVD1wK5q+SHhyRPsX4Qc0NkJqlGMTFWcGLSH2u4v1n Ur1w== X-Gm-Message-State: ALoCoQnSYSSHiY27KybwyffhKjjTzM9Fphw76G+Q09+ISsMKqAyI4KJNGYxZh+xo/iaAPP/+v9+voepldsGFfrkK0ScZVbPg2w== X-Received: by 10.112.149.2 with SMTP id tw2mr10803558lbb.75.1453208356163; Tue, 19 Jan 2016 04:59:16 -0800 (PST) Received: from localhost.localdomain (ppp91-76-173-134.pppoe.mtu-net.ru. [91.76.173.134]) by smtp.gmail.com with ESMTPSA id o3sm4057410lfb.39.2016.01.19.04.59.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jan 2016 04:59:15 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 19 Jan 2016 15:59:09 +0300 Message-Id: <1453208349-4330-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: timers patch Subject: [lng-odp] [API-NEXT PATCH] validation: timer: increase cyle timeout to prevent timer segfault X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Increase after loop delay to: 10/10 - 7/10 = 3/10. 3/10 * 2000 + some 50ms = 650ms (instead of 1ms) to make sure that timer hanles expired. This patch can be considered as temporary fix for timer test to prevent segfault. More detailed fix will be later. Suggested-by: Ivan Khoronzhuk Signed-off-by: Maxim Uvarov --- test/validation/timer/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/timer/timer.c b/test/validation/timer/timer.c index dda5e4c..f533f05 100644 --- a/test/validation/timer/timer.c +++ b/test/validation/timer/timer.c @@ -374,7 +374,7 @@ static void *worker_entrypoint(void *arg TEST_UNUSED) } struct timespec ts; ts.tv_sec = 0; - ts.tv_nsec = 1000000; /* 1ms */ + ts.tv_nsec = 650000000; /* 650ms */ if (nanosleep(&ts, NULL) < 0) CU_FAIL_FATAL("nanosleep failed"); }