Message ID | 1450366164-19537-5-git-send-email-ivan.khoronzhuk@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp437288lbb; Thu, 17 Dec 2015 07:32:06 -0800 (PST) X-Received: by 10.140.97.2 with SMTP id l2mr31612077qge.30.1450366326770; Thu, 17 Dec 2015 07:32:06 -0800 (PST) Return-Path: <lng-odp-bounces@lists.linaro.org> Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l35si11753365qgf.113.2015.12.17.07.32.06; Thu, 17 Dec 2015 07:32:06 -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 3ACD061659; Thu, 17 Dec 2015 15:32:06 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=KqBwQVZm; 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 28EBD61667; Thu, 17 Dec 2015 15:29:56 +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 7D2FD61644; Thu, 17 Dec 2015 15:29:43 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id 2512361644 for <lng-odp@lists.linaro.org>; Thu, 17 Dec 2015 15:29:37 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id l133so53914148lfd.2 for <lng-odp@lists.linaro.org>; Thu, 17 Dec 2015 07:29:37 -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=KqBwQVZm1E/tzJYRZXtKyGTb5sNyk4MuqX0A2C4exD/fHmnHU88Kl3JGzGpdwi50Fh WGo/Xdbd9jd5UK6aKbeoH44nwRNj3oaPjh+XbkdJd6z1fyD4X9e1dq9/VBJsgugmdjTu dW+VUtt5AnMajz+uX0g/N17USeddil8ysSqAk= 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=CoCbfq26ILEV2BQlImQBeIN+TP6bir/OpIXg6Zd8ssihXk+WHEPBT7FgWUK7Lf6a42 drCtmmraUTf1Unhp1+B8Wmy8jjIGpbC6eM8FVvWYMeX0IsFOql8xtO/nbt3srhYKW0je ftUq8qcbIjKr+ngCPeiiUIgAOFI5vdVXKYoT3ODCmsqmd5CgbAppqz6vBglyFiobmXhm WaVPAEQkTSvOrXGVHxzHvi40CETD72Zty38xTKQxBkVcvmn0iS8e6T4RGAF+lHtg35N8 5HZu9rXViq/0NAwMYmDmiIXGGvWl5d53ts9KO/PTESFh/rFzAH1osYwQGsQFPmeR+v3t FqKw== X-Gm-Message-State: ALoCoQkYtpspK0jGOeIRDf+ckBkEJRt//QBH217vzLBPLLqs09ipK14IqWVKrdsjmyUjoZ9EywL3/QaKo6i0hilOsSxoC33qYw== X-Received: by 10.25.152.133 with SMTP id a127mr21669518lfe.152.1450366176105; Thu, 17 Dec 2015 07:29:36 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id kz5sm801302lbc.7.2015.12.17.07.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Dec 2015 07:29:35 -0800 (PST) From: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> To: lng-odp@lists.linaro.org Date: Thu, 17 Dec 2015 17:29:22 +0200 Message-Id: <1450366164-19537-5-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450366164-19537-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1450366164-19537-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v3 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" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
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)
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> --- test/validation/time/time.c | 4 ++++ 1 file changed, 4 insertions(+)