From patchwork Fri Dec 18 12:01:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 58650 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp980521lbb; Fri, 18 Dec 2015 04:07:00 -0800 (PST) X-Received: by 10.140.241.22 with SMTP id m22mr4551604qhc.102.1450440420243; Fri, 18 Dec 2015 04:07:00 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d90si15953052qge.52.2015.12.18.04.06.59; Fri, 18 Dec 2015 04:07:00 -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 BE80061658; Fri, 18 Dec 2015 12:06:59 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=h4DV1O9G; 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 CD85A616A8; Fri, 18 Dec 2015 12:03:42 +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 CC1786161C; Fri, 18 Dec 2015 12:03:37 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id 732816168B for ; Fri, 18 Dec 2015 12:02:13 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id l133so70832226lfd.2 for ; Fri, 18 Dec 2015 04:02:13 -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=h4DV1O9GblMIKQMWG+4VjAsKI9Aj5C4qr2jn1JzBK9jDEebFzp9WyU2hfN0HZWQrIr 8BOwuiPuqYyhPpB9ctMuTzqpgVQYdDkNolU12wmqclhyU0pjWRMDisrQa5s8gIGebkvL NfcOR+AuWE5sUNdYNpHL3gPZ2dpT+ebAB8my0= 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=LeTIgz6xDj1xRUPVaaZTuZGixDom7NU5bdNpLAjp99iF47CerwIhJR0bmLOpn51msN dkTPN1iIzxQdenA9IiuDFITuoiwjkKT7THj/6PWG9XIIYs8yx5NF2DW69Tr8SwY8G2vG VO7Uqut54/i6ydSY5Hlx70+Fc1f3PF1hKZps2L6s6vpEtaghVR51sY0s7HleKjJqczcf 9jc8Aw6D5qnnzssBnncCp05ue9AQeuQyaSwN055liiTfm+Sjg0/rliz99M1jmZ7cnGDx lABsaROPCvZoRErjoyiQvf0Junqt54swOJ2DxrY29ZZMeqoD2Hhun1dY49REcHu6Dbkt 6J+g== X-Gm-Message-State: ALoCoQn0+NgWKju+mWJW/Nx+9Xvs/5zj7N9Nu6z5bl0D7SBwGTcVdtySOw4VC4Yv8gVXAiwNtx2PWhUFAZywFba6PWJhFHF7YA== X-Received: by 10.25.144.5 with SMTP id s5mr1211934lfd.154.1450440132343; Fri, 18 Dec 2015 04:02:12 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id e63sm2731250lfe.5.2015.12.18.04.02.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 04:02:11 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Fri, 18 Dec 2015 14:01:55 +0200 Message-Id: <1450440117-5588-5-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450440117-5588-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1450440117-5588-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Cc: petri.savolainen@nokia.com Subject: [lng-odp] [API-NEXT PATCH v5 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)