From patchwork Thu Dec 17 16:31:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 58606 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp474672lbb; Thu, 17 Dec 2015 08:33:39 -0800 (PST) X-Received: by 10.140.88.51 with SMTP id s48mr44911385qgd.48.1450370015887; Thu, 17 Dec 2015 08:33:35 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x64si10825147qha.23.2015.12.17.08.33.35; Thu, 17 Dec 2015 08:33:35 -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 6C70E61674; Thu, 17 Dec 2015 16:33:35 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=IHimXz/i; 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_H2,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 921EA61666; Thu, 17 Dec 2015 16:31:51 +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 66A9661659; Thu, 17 Dec 2015 16:31:45 +0000 (UTC) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by lists.linaro.org (Postfix) with ESMTPS id 02AD26161C for ; Thu, 17 Dec 2015 16:31:44 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id yq9so29303031lbb.3 for ; Thu, 17 Dec 2015 08:31:43 -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=IHimXz/iqM3kxr6S22OeN6DeuiAy9eOYGj+PfI2wbiEgRFZk63R2aFBTqVO/fP3GOi ZmC7wOdmZZ8ZbSK5hCse4+b3rYc7TPyYogIcXCivYWlj/zV7hcd9Q8r54denLiZQO9JB XQEij8UvHwprq7315Q2/VZoxVIqDTj1FhOJ6k= 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=hxohERGfeLZcUBUpTBw8r//fAEXpSci2FG5VBBXfjmNjRbj7X+Bws/2xfYL/QrUgwu cqCnKZtBFFIWmUTDpqxA0oSx3YupHYnSSNF8qXYtL4hXtzU8fIWILGQiwmGPWkJisEYI 2RCcgARIFRlzCNOSMvlbKXkqJjMLv1KzLqdborxYqLfOAXTE7eWrsHqOrvKqoxWnxy0G +XzoM8swVcpPupi/i+5qbFUqleYAWYHro9AP0idZIzTDYNWrYBxJas7W23QjjrVHEX3N uhGh3BA6BrpTZT+dhVAvkQzDBfP6+0sAn1j9xpfToaUwO+ryoLf0ll4iKhcKqcCvFgqm Bk+w== X-Gm-Message-State: ALoCoQn0w0l/NOtjLEH67sMoNRpAMeVGCqctRa0fOQG+SPBg1Q3O9fAod+QF7ixuo7cfNP2DPypuv+WD/k4Qc0wMasAn1HSsAQ== X-Received: by 10.112.63.233 with SMTP id j9mr14817728lbs.47.1450369902905; Thu, 17 Dec 2015 08:31:42 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id u12sm2030563lbk.45.2015.12.17.08.31.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Dec 2015 08:31:41 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Thu, 17 Dec 2015 18:31:27 +0200 Message-Id: <1450369889-4310-5-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450369889-4310-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1450369889-4310-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v4 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)