From patchwork Wed Jan 13 16:46:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 59673 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3477117lbb; Wed, 13 Jan 2016 08:47:19 -0800 (PST) X-Received: by 10.140.219.136 with SMTP id p130mr188755417qhb.80.1452703638990; Wed, 13 Jan 2016 08:47:18 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a78si2114689qgf.66.2016.01.13.08.47.18; Wed, 13 Jan 2016 08:47:18 -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 3AF4861784; Wed, 13 Jan 2016 16:47:18 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=LodMD3Wp; 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 28C8261781; Wed, 13 Jan 2016 16:47:15 +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 034F961782; Wed, 13 Jan 2016 16:47:08 +0000 (UTC) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by lists.linaro.org (Postfix) with ESMTPS id D3ED16177A for ; Wed, 13 Jan 2016 16:47:07 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id bc4so293210666lbc.2 for ; Wed, 13 Jan 2016 08:47:07 -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; bh=+CPRC+Jruvhq5iOIODCYDNlz9ndrlx0CsU81048JOFk=; b=LodMD3WpvWSuWz0kn2JRT35P7PdD+jg+FW3jQ+8RBu+R4XUTCobSTfSG5Bd14uJIWm aAvB9mJid9wn0V0iad3wcOrjBYcIoY1wniEVrFcCnhOalnb2OHWRLK5+MIR92N34pDLa EuxMYay2ahu4YmBg27VTN4r8v4nbqNmD82Lnc= 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; bh=+CPRC+Jruvhq5iOIODCYDNlz9ndrlx0CsU81048JOFk=; b=cIih2Maj9ZuT6GWJ3Xf2QgahfA4qD0WmX5Otkn+fkPmXCeSqC+yIWJ29AKE12ucv0n VRwboQ1Bm6WSzQtAdWq7fKD7IR3GW3xPACcnRs54H/sW/4Q2w77Yoml/V4DRLchrHetS 5kIJwvgLq+hihbeT/yYQL2HwiwYilODF83FrOK7iD7eeNJhF5zkMFEu6/MtCn+R4Iz1j qoEaIvyEO4Rvb4hikn0BVQkc23CfU9/AvhL1dGC3FHm4Ou4e05olW8TffFW1XAQihLuo uc0cwCcK5kqZKVMtUpvJYTYccHZfJhlvRmsFRlQ6q2P6eM3knPS9Tdy2Pkt/oWo8Gcbk NtFA== X-Gm-Message-State: ALoCoQnZot16SaAlyDhd5oh1WSYhHZ3lN+4lT5pXXHqS35BEIIrNy3GKPfomS2CUecMHMjwLoKR1HxArSNUZ2KAJnZqZWTzVXg== X-Received: by 10.112.132.66 with SMTP id os2mr39690898lbb.111.1452703626689; Wed, 13 Jan 2016 08:47:06 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id b5sm274919lbc.14.2016.01.13.08.47.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 08:47:05 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Wed, 13 Jan 2016 18:46:57 +0200 Message-Id: <1452703617-11652-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: pktio: don't continue if packet with > MTU is sent 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" If packet with size > MTU is sent the test can crash farther, so better to stop here. Signed-off-by: Ivan Khoronzhuk Signed-off-by: Stuart Haslam Reviewed-by: Stuart Haslam --- test/validation/pktio/pktio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/pktio/pktio.c b/test/validation/pktio/pktio.c index 8121f1e..45c11c5 100644 --- a/test/validation/pktio/pktio.c +++ b/test/validation/pktio/pktio.c @@ -968,7 +968,7 @@ void pktio_test_send_failure(void) * the initial short packets should be sent successfully */ odp_errno_zero(); ret = odp_pktio_send(pktio_tx, pkt_tbl, TX_BATCH_LEN); - CU_ASSERT(ret == long_pkt_idx); + CU_ASSERT_FATAL(ret == long_pkt_idx); CU_ASSERT(odp_errno() == 0); info_rx.id = pktio_rx;