From patchwork Thu Dec 3 12:49:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 57642 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp3475154lbb; Thu, 3 Dec 2015 04:50:30 -0800 (PST) X-Received: by 10.140.175.65 with SMTP id v62mr11225872qhv.75.1449147030729; Thu, 03 Dec 2015 04:50:30 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o190si8469591qhb.8.2015.12.03.04.50.30; Thu, 03 Dec 2015 04:50:30 -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 4BE8462CAA; Thu, 3 Dec 2015 12:50:30 +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_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 3DB6B62BCF; Thu, 3 Dec 2015 12:49: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 B29DA61CD4; Thu, 3 Dec 2015 12:49:48 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by lists.linaro.org (Postfix) with ESMTPS id BA74B61CCA for ; Thu, 3 Dec 2015 12:49:47 +0000 (UTC) Received: by lbcdv4 with SMTP id dv4so893705lbc.2 for ; Thu, 03 Dec 2015 04:49:46 -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=tWl1adQja8Wnj2WWADuL+riMeABZ2MYnEMf8n6K88tfNijuxlmBKuuYojVafKhAJZ7 +bHjqAZEAL3GLzUXX3IhvJuL4ibU+LC7Ofg17gNIe6Ge4O8Vyyz0/hyjgyWPbtA6hwez Q+6gMaJ3Cmdcy7JVVMaLgdKKEp9Gw3L4WWAIiwEzGTtXxvn7wTfyRM5mMjDRFaq7i5w3 fb38dkXHaPev94UXuoTU2tWr8cSA0SU2SfuPxalE+9FKSDUCeqrRNIG6NaCyAie5XIJM SxDPhEF4siXMD8Nesf50k6SjZoWJ7FOWrMnzUwrK5QTrMUkboL5rM9ywbU79KlHat6z6 XkjA== 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=P42qV8D3IKo6u0mjDfGL4+wa2WFaBqY+CVM0ZxQcdwA9NE+fmv38cObskI88gjYw4o 0i623SZ9RBw6ZFmTHHgVPlSn+jmAyqwR/5CEDXgjrMPJ/yE5XmJBgRBSHDDgibetsuhY q//qM46JLK/9cf8gb9yqN8oucIwk/UrCnQbHZkRzwurjCl0vlSWRXw5/BFlVPXNhr5l6 UAAyZjfshgeyYnvqvJ1lFZpJobMMWGFS5K1OsugWiYr0w1PkRzZRWcCwZnqSrUF1JEHV 1DVdQXZplSSOc0q+rwc7qzuHpDp2Sey9ukHbasmouIb0AJi6BTU8CypQSxeY4QBBM4IJ KIOg== X-Gm-Message-State: ALoCoQmJax3V9mws7tvSoL2CkHwd+9JBS7In8vjW0l/07Z/d43cscyc7QBPb2HCHy0y4MExn6/st X-Received: by 10.112.170.67 with SMTP id ak3mr5699831lbc.82.1449146986662; Thu, 03 Dec 2015 04:49:46 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id l81sm1392459lfb.40.2015.12.03.04.49.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Dec 2015 04:49:45 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Thu, 3 Dec 2015 14:49:30 +0200 Message-Id: <1449146978-22222-2-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449146978-22222-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1449146978-22222-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v6] 1/9] 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); }