From patchwork Tue Dec 15 12:29:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 58434 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp3329lbb; Tue, 15 Dec 2015 04:31:44 -0800 (PST) X-Received: by 10.55.81.3 with SMTP id f3mr50451548qkb.35.1450182704730; Tue, 15 Dec 2015 04:31:44 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v140si438174qka.56.2015.12.15.04.31.44; Tue, 15 Dec 2015 04:31:44 -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 4C5CD610E1; Tue, 15 Dec 2015 12:31:44 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=aCizDhhd; 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 B9A39618CF; Tue, 15 Dec 2015 12:30:24 +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 284C361B00; Tue, 15 Dec 2015 12:30:22 +0000 (UTC) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by lists.linaro.org (Postfix) with ESMTPS id B7EF4618CF for ; Tue, 15 Dec 2015 12:29:41 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id p203so5269541lfa.0 for ; Tue, 15 Dec 2015 04:29:41 -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=aCizDhhdY/AFvI3aDoTdG1rySN7BMt9ejFJCYoB/wO3iZciGM79EgIyplR06GPKplH 9uwTsM8kJ4EgeRn8AToPTkP5U/txZAlo1dYSJZy11LY2GCN9yEQp5H0lFI+U9wNBSSTo UyEQZVjoZMSyF5ryPA1ZiLGHUCsL1dpEUwzvs= 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=PoCkx5n3vOKt1JwKkar88pmCIjLsqCupqQK88zEX4JFqhQcKo6iZSuqZki2uH36BuW O1Rv/Fii/0Q4SBW/eoRKoO0UGn01g4jETkfRxBcHSQh3vng0kfwNO8/ewFwljExCfx6L CoAofOqdhyTepXSEoMN84CdcIE8jJs8rVFpEUwkKonoT0wzsDYHnq+CbdJ67QV77EGNy KUWkllThONGisaBaEOTFPxX6iGC8nVM1od34BBOvBi+cA26joOIbdJvX635oK2eQsQrC EcxLNVaEsHCqk3jWJtMxzf5dIAW16FWAY7SiAkZqAj0KrE577lls6afYwXpf9x+YVWbk I12Q== X-Gm-Message-State: ALoCoQmX+eOnUl0pUyKsWF5boj+eaIhixgpLYx6odltvZ/i7tW4T3MoQOw3JRPOmmlnVqmcR7q15SpH73fB/vdk29vkk3jisCA== X-Received: by 10.25.210.135 with SMTP id j129mr15676021lfg.101.1450182580689; Tue, 15 Dec 2015 04:29:40 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id h8sm15103lbd.5.2015.12.15.04.29.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Dec 2015 04:29:39 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Tue, 15 Dec 2015 14:29:25 +0200 Message-Id: <1450182567-7646-5-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450182567-7646-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1450182567-7646-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v2 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)