From patchwork Mon Dec 14 18:58:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 58360 Delivered-To: patch@linaro.org Received: by 10.112.73.68 with SMTP id j4csp1666688lbv; Mon, 14 Dec 2015 11:00:03 -0800 (PST) X-Received: by 10.140.17.213 with SMTP id 79mr45142856qgd.49.1450119602988; Mon, 14 Dec 2015 11:00:02 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 140si13739454qhi.4.2015.12.14.11.00.01; Mon, 14 Dec 2015 11:00:02 -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 B61FA61D0E; Mon, 14 Dec 2015 19:00:01 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=kTobEJf6; 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 3EA3D61CEB; Mon, 14 Dec 2015 18:58:59 +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 EB0C161D27; Mon, 14 Dec 2015 18:58:55 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by lists.linaro.org (Postfix) with ESMTPS id 0986661CC7 for ; Mon, 14 Dec 2015 18:58:29 +0000 (UTC) Received: by lbbcs9 with SMTP id cs9so112448982lbb.1 for ; Mon, 14 Dec 2015 10:58:28 -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:in-reply-to:references; bh=NT6C6+E2Sr+GX/fGZRp/mvKnOv+An/qFZUxgkDehKO8=; b=kTobEJf6W3loVx9EWrOo6q8RlxF3NY8Yd48SWEDKcLnv4QxJzH/MxUWe4+MWBsEetU xCGavfsPjA4nDJ4R1DhbTrz9ylHWaDizimLyNQ1FUspIM7H0rX/d9ODG8NOtrTcTwskr B7ZtfoCp87xDvQZWHSnBIo0W5almafxZi70LQ= 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:in-reply-to :references; bh=NT6C6+E2Sr+GX/fGZRp/mvKnOv+An/qFZUxgkDehKO8=; b=AuVaDw6GE592/F95LtJbMjVCKRPuku21pb9w8/VgsOAK4bNleN46xJEr6nMD0tHoJx 12QjLSMNnM7ncGihKLf5rdqIqr7TwZgXHvS/zNR1pFRvwDLt/9jOICahqSJN8hTIoUaT vGwHotaz67lgggk0ARL7ppmO+s5ZzqZ9mvSwk+49Ov9LrQvJAElCHubP0QCNDhLvh0Et zcNWF1UZ8yq1E9fLgMBrYXTnyE90k7KUWGj90/KaPGFe+nd9yg8tDzRTRwbd+NW0205V 2JoqRCCP/tdfRhZnwsgRdAKdxXQ1LqdB9/DVm6Seo8vQ9zRCArdVXrZW6tl6fiAbT1T8 3Emw== X-Gm-Message-State: ALoCoQn4d/OlvV8q1SZ1xtPvhpXD0NpDlqKRWEwQqD4ldXhFqOCn9mDjiUA6k2tNY3gISiqLDogl9tL3l6qktd+WV4u45JAOXg== X-Received: by 10.112.142.70 with SMTP id ru6mr13928149lbb.51.1450119507996; Mon, 14 Dec 2015 10:58:27 -0800 (PST) Received: from localhost.localdomain ([212.90.60.8]) by smtp.gmail.com with ESMTPSA id o5sm5609246lbw.16.2015.12.14.10.58.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Dec 2015 10:58:27 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Mon, 14 Dec 2015 20:58:14 +0200 Message-Id: <1450119496-21604-5-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450119496-21604-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1450119496-21604-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 4/6] validation: time: add test convertsion on 0 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" Signed-off-by: Ivan Khoronzhuk --- test/validation/time/time.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/validation/time/time.c b/test/validation/time/time.c index 4040b9f..ce6666f 100644 --- a/test/validation/time/time.c +++ b/test/validation/time/time.c @@ -50,6 +50,10 @@ void time_test_odp_conversion(void) upper_limit = ns1 + TOLERANCE; lower_limit = ns1 - TOLERANCE; CU_ASSERT((ns2 <= upper_limit) && (ns2 >= lower_limit)); + + /* test on 0 */ + ns1 = odp_time_to_ns(ODP_TIME_NULL); + CU_ASSERT(ns1 == 0); } void time_test_monotony(void)