From patchwork Thu Dec 21 17:00:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 122585 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1145081qgn; Thu, 21 Dec 2017 09:00:35 -0800 (PST) X-Google-Smtp-Source: ACJfBoteSYJhppyfMfTUgORtmSSjZTMc9+a68Lbyy6RNp5Vptw/o/LmOayMydgVqhaBaajc/DtZR X-Received: by 10.233.235.133 with SMTP id b127mr16096949qkg.137.1513875635205; Thu, 21 Dec 2017 09:00:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513875635; cv=none; d=google.com; s=arc-20160816; b=DlWeKbDU+cmTBonRBCJ+aQnsBOBMtWyjcrHQJeXxnrJCK4JPOsfkUC5nKa5WbQwCoO NaOKDQsfi5W6kwS8iT2FRzTkF7P65/3/h3iqur86sHmqEvw8IXcIMJRAXWGl6W+fjGdO cAZrwML4GU1NtkZWvEBFMFZljU88tMNWLeIHQFNl3adRpxcfE8UriyNlwm5sSBLgEnGS xxBwK8Q3Rp6uKkfqKg9ZYis3Wy1NdCZC2m3zpw7ws2hZwkDCdZxKEGZSvOrY48+bGZ8N Dv/P8Cz+D1rJh4YH/mO28oHDmHrYy4VcKcc2MQ2pmOZ9541q/zVzevaBGPMlNzqO5hLR 4Weg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=OU2wYCb8lCGhEjfYh+PJ9qlFMsDJvfQALyBq8boT67M=; b=DQ0pDqK5naVKnHQm1GXK1qS15r3zabHIvoBdb3sOtFc1iJgKy3qeirG5pw87FvJ8Q8 Kgs5TgfBoRvvQK2MBI0fmqmTmtk71jLu64yAbBftWmxYcSneg93rBRWnPef9KQfP3hgk Km3V8B75xidfKufrLe3KFcHKY7sFKdXaMtMYxaru7USGrCh3A8lW3jyK6IwAotyS3R+B nwA4EYNpB88ncdFokBR+49Jo335aKWymsIlAqRcXW+PmWftd1LEBFm7rXXlxusbJvFV3 DTMyV8bQtRDx5QOw2KxbhogYZ1HbBupYMmUnm6AZvMV6T1B+XXNQFXoeAR9rh3qGZMy5 iZpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id 31si3564116qtv.152.2017.12.21.09.00.34; Thu, 21 Dec 2017 09:00:35 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 83CC26097F; Thu, 21 Dec 2017 17:00:34 +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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 941F460953; Thu, 21 Dec 2017 17:00:28 +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 43FA76095F; Thu, 21 Dec 2017 17:00:25 +0000 (UTC) Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [77.88.28.109]) by lists.linaro.org (Postfix) with ESMTPS id 158F660953 for ; Thu, 21 Dec 2017 17:00:24 +0000 (UTC) Received: from mxback6g.mail.yandex.net (mxback6g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:167]) by forward106p.mail.yandex.net (Yandex) with ESMTP id E7DCF2D82991 for ; Thu, 21 Dec 2017 20:00:21 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback6g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 7p5YRBYSWp-0L4CrNw2; Thu, 21 Dec 2017 20:00:21 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Dgw1EEXYtW-0LXO30bR; Thu, 21 Dec 2017 20:00:21 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 21 Dec 2017 20:00:20 +0300 Message-Id: <1513875620-25193-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513875620-25193-1-git-send-email-odpbot@yandex.ru> References: <1513875620-25193-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 361 Subject: [lng-odp] [PATCH v1 1/1] test: validation: correct comparison in packet_test_ref() 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Bill Fischofer Fix typo in CU_ASSERT() that used an assignment instead of a comparison in testing reference length. This fixes Bug https://bugs.linaro.org/show_bug.cgi?id=3466 Signed-off-by: Bill Fischofer --- /** Email created from pull request 361 (Bill-Fischofer-Linaro:bug3466) ** https://github.com/Linaro/odp/pull/361 ** Patch: https://github.com/Linaro/odp/pull/361.patch ** Base sha: 4c4052f894b8df5784d2aae2e36b96796ee020fd ** Merge commit sha: f771c96d7492d0741d57af3e3b9888f0cac1c756 **/ test/validation/api/packet/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/api/packet/packet.c b/test/validation/api/packet/packet.c index 9318dfc70..241681df1 100644 --- a/test/validation/api/packet/packet.c +++ b/test/validation/api/packet/packet.c @@ -2354,7 +2354,7 @@ void packet_test_ref(void) ref_pkt[0] = odp_packet_ref(base_pkt, offset[0]); CU_ASSERT_FATAL(ref_pkt[0] != ODP_PACKET_INVALID); ref_len[0] = odp_packet_len(ref_pkt[0]); - CU_ASSERT(ref_len[0] = odp_packet_len(base_pkt) - offset[0]); + CU_ASSERT(ref_len[0] == odp_packet_len(base_pkt) - offset[0]); CU_ASSERT(odp_packet_push_head(base_pkt, base_hr - base_hr / 2) != NULL);