From patchwork Thu Nov 12 17:05:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 56440 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp534690lbb; Thu, 12 Nov 2015 09:06:51 -0800 (PST) X-Received: by 10.140.201.139 with SMTP id w133mr17930905qha.15.1447348010982; Thu, 12 Nov 2015 09:06:50 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c129si6377281qha.15.2015.11.12.09.06.50; Thu, 12 Nov 2015 09:06:50 -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.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 81AD262022; Thu, 12 Nov 2015 17:06:50 +0000 (UTC) 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 D9B2D62020; Thu, 12 Nov 2015 17:06:03 +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 A49B962020; Thu, 12 Nov 2015 17:05:55 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id 6FA976201D for ; Thu, 12 Nov 2015 17:05:54 +0000 (UTC) Received: by lbbcs9 with SMTP id cs9so38859601lbb.1 for ; Thu, 12 Nov 2015 09:05:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v+KkyoQZwQj4qx/2pj63+hZrB/Y4rIlw4QuVTP6bAmw=; b=z3j+EYOAkMqMjjryAoChqD/SJZhJQyFPBv+dQQnViTdIyPI+8i2uX5+SLzpU6BHsyL 7gDMT2zi1zg9DJhPSnlS5o3QtT0QJjOseh7jAqDhdu2OTuSFkiNPe+RXreIz+MUG0gDB EMSVsQp96A3+ZCFxAZ1xNjdG94Oudm2JukHb44bOAMnOusBTgBJnRaN1WrCU6ewO9zAH u8Nzvsr9R6zAPoFN/ftPR3BCfiyKApksz1jPjJ8CzDk5wU/E7DMrW/rnnFrUxmTdEfEz o++K3cxoGU0oGsxxocEvKprsf5GEPU12kEhHIAxf2aZbXzsfRP5aq+hxS7wpipUs1bEr h2hg== 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=v+KkyoQZwQj4qx/2pj63+hZrB/Y4rIlw4QuVTP6bAmw=; b=l9Ej+Br+A4IjKSyhLbI20jYzVu1IFN5ybxYHffh4qiVXReyCz3usXiuZ7Y+Ae8Kz9Z 9UmKuAFnaMAniZ04W9/V4jMGoWzlwXkSTFxMZ9Z7tCMDl6tSdC3/14FHU7iA/rKnXc5b xMrqBHhIMnm6GtE4OYbzJtDwBcJP/a5sWzYmvLb0h2JD2zdj3l5niny8q988NSk8/nmn MIsrVBwwBkA2F7cN47Y/uW93bGuOyKn7T0Xgh4H8rtfRv0vUDw17H8VRQ6vxuMfaNbnD eXaFiIOZy6XIwQA43snYjihMaeWKh6Z/fB+7pvhcrePo0NIT52IuZruK0S2bc3e/wJYl zyCQ== X-Gm-Message-State: ALoCoQlha8ahSQHisnzDk/FdE8oiguFNpQguVJ/CkpznYG28JOXWluYnGzYqrVyYUFbKJHMyqMY6 X-Received: by 10.112.190.35 with SMTP id gn3mr7789001lbc.96.1447347953261; Thu, 12 Nov 2015 09:05:53 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id nb1sm2412412lbb.9.2015.11.12.09.05.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 09:05:52 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Thu, 12 Nov 2015 19:05:38 +0200 Message-Id: <1447347943-16807-3-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447347943-16807-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1447347943-16807-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [lng] [PATCH 2/7] validation: time: don't assign int directly to odp_time_t 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" Under opaque type can be structure that cannot be used with direct values, So, use conversion functions to get time_t to avoid build issues. Signed-off-by: Ivan Khoronzhuk --- test/validation/time/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/validation/time/time.c b/test/validation/time/time.c index f70c776..3d05a6f 100644 --- a/test/validation/time/time.c +++ b/test/validation/time/time.c @@ -36,8 +36,8 @@ void time_test_odp_negative_diff(void) { odp_time_t diff, t1, t2; - t1 = 10; - t2 = 5; + t1 = odp_time_local_from_ns(10); + t2 = odp_time_local_from_ns(5); diff = odp_time_diff(t2, t1); CU_ASSERT(odp_time_cmp(diff, ODP_TIME_NULL) > 0); }