From patchwork Mon Jun 26 16:00:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 106364 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp170472qge; Mon, 26 Jun 2017 09:00:52 -0700 (PDT) X-Received: by 10.55.16.153 with SMTP id 25mr1230270qkq.45.1498492852087; Mon, 26 Jun 2017 09:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498492852; cv=none; d=google.com; s=arc-20160816; b=k9ptoOmV216kanmXjrAUxUYMGrrmzZOuc53HOpQlZnyC3P7tuUUP8qLQzysuXgjVmm sfJ02EPv7C9yOAvqSxa48NMBmk6GBuYPtForgal5cIPkT1cPCvyF1EUsFPYQX1DA72xZ 25ifk2yuQhfR5ulO4fquLlqdgo/brR5pkbSfsWATow/jpQJkk7i9Nr2vDurib1f1svwW BpGf2gcNjUo1GvNtZSZ5j6Eh8/pASPncUgPS9DjS9CjweB7CiZTlXAfVzfbsS08IQ22J uPuuHKx5ri5ciJ+4pDX5KMnKD0hgEIfhupFdtkXdzX7f7EV7vSz6ZpscJFxyIsgkPkOt Zq6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=m215XvaeNe5aBacQPIbzPytJ0ItpVMAUShHWn0jAVjA=; b=RloPqrlNUW0Q7zC3O752K5vJw45cyynTXK26vza4HcDdGdEkRkzVs00oZ7BO1D1lwW jx01tY4Us2hJs4XkULkW+GEdofY8fHR+rrJlPzDNIdMvDH6JNKhahP+XPE4Q9D+kU893 ytjUdjXboXsn4Qo8r4rrRA7xd8w4M5o13iAv12Gr2qXlcyyM4QOvWZu/gvEcjUNk52Jr I7E07mOelWxTVmJmIdjqSgQ5rDMNHJDGLXHl2MlmwmkGB8lYKIoA+o4sbhIWBJ657K9Y 2uR+tTkk85uqy7PXOhESrK6Piue2yqMn04spxrbE4FLNBLMS/j4mJkNqZGkLFnnv6jia mZWg== ARC-Authentication-Results: i=1; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 21si348479qkd.325.2017.06.26.09.00.51; Mon, 26 Jun 2017 09:00:52 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id BCF6D60D4E; Mon, 26 Jun 2017 16:00:51 +0000 (UTC) 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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 CE866606A3; Mon, 26 Jun 2017 16:00:27 +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 7CA8B6065D; Mon, 26 Jun 2017 16:00:25 +0000 (UTC) Received: from forward2h.cmail.yandex.net (forward2h.cmail.yandex.net [87.250.230.17]) by lists.linaro.org (Postfix) with ESMTPS id 6A5976050C for ; Mon, 26 Jun 2017 16:00:24 +0000 (UTC) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:7]) by forward2h.cmail.yandex.net (Yandex) with ESMTP id 11F3D20D5E for ; Mon, 26 Jun 2017 19:00:23 +0300 (MSK) Received: from smtp2p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2p.mail.yandex.net (Yandex) with ESMTP id E522F1A8003F for ; Mon, 26 Jun 2017 19:00:22 +0300 (MSK) Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id obtgRGlzaH-0Lh4CtRb; Mon, 26 Jun 2017 19:00:21 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 26 Jun 2017 19:00:06 +0300 Message-Id: <1498492806-19679-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1498492806-19679-1-git-send-email-odpbot@yandex.ru> References: <1498492806-19679-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 59 Subject: [lng-odp] [PATCH v2 1/1] test: time: add verbose error message 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov On arm64 CI found error on that line. Do more verbose message to better understand what issue is. Signed-off-by: Maxim Uvarov --- /** Email created from pull request 59 (muvarov:master_timer_debug) ** https://github.com/Linaro/odp/pull/59 ** Patch: https://github.com/Linaro/odp/pull/59.patch ** Base sha: 497c339f94e35d5fadeff539cebfbf44d698dc7e ** Merge commit sha: 7a8afd1dcac513fe20ac8d0a4c58e1dc7d1c4792 **/ test/common_plat/validation/api/time/time.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/common_plat/validation/api/time/time.c b/test/common_plat/validation/api/time/time.c index e2ca2e17..86525fb4 100644 --- a/test/common_plat/validation/api/time/time.c +++ b/test/common_plat/validation/api/time/time.c @@ -72,7 +72,15 @@ static void time_test_conversion(time_from_ns_cb time_from_ns, uint64_t res) * value in ns is returned after conversions */ upper_limit = ns1 + res; lower_limit = ns1 - res; - CU_ASSERT((ns2 <= upper_limit) && (ns2 >= lower_limit)); + + if (!((ns2 <= upper_limit) && (ns2 >= lower_limit))) { + CU_ASSERT((ns2 <= upper_limit) && (ns2 >= lower_limit)); + fprintf(stderr, "\nlower_limit %" PRIu64 "\n", lower_limit); + fprintf(stderr, "ns1 %" PRIu64 "\n", ns1); + fprintf(stderr, "ns2 %" PRIu64 "\n", ns2); + fprintf(stderr, "upper_limit %" PRIu64 "\n", upper_limit); + fprintf(stderr, "res %" PRIu64 "\n", res); + } ns1 = 60 * 11 * ODP_TIME_SEC_IN_NS; time = time_from_ns(ns1);