From patchwork Wed Jan 13 17:38:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 59677 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3505764lbb; Wed, 13 Jan 2016 09:38:48 -0800 (PST) X-Received: by 10.140.100.229 with SMTP id s92mr114675048qge.19.1452706728209; Wed, 13 Jan 2016 09:38:48 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 19si2314303qgf.103.2016.01.13.09.38.47; Wed, 13 Jan 2016 09:38:48 -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 820756178F; Wed, 13 Jan 2016 17:38:47 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=XxGFFxtc; 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_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 3EB496177E; Wed, 13 Jan 2016 17:38:44 +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 7723661782; Wed, 13 Jan 2016 17:38:42 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by lists.linaro.org (Postfix) with ESMTPS id 8A2A86162B for ; Wed, 13 Jan 2016 17:38:41 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id oh2so295457062lbb.3 for ; Wed, 13 Jan 2016 09:38:41 -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=nEiRb9UxwIkqSPUnSgWdOmRm6f+Wm+tELIEq0mRq5Ng=; b=XxGFFxtcPWC64y/uSLQ6BbYBBpV1+YmyJghZgGfthXm7/saZxyCnAEBHyoSI+530UK P5rFGIbLUSt4jcCsMu88dMmOUR9Dn+j9hB4/usXiOUpKgqVFwD0l2FFRo/UlBMxINgBm XuV5Kp3pYSioIsEoYLopJ+TzgzizGfb7EZTRk= 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=nEiRb9UxwIkqSPUnSgWdOmRm6f+Wm+tELIEq0mRq5Ng=; b=MB68RxM2kGXmGIxqgGykR2mAAVeaCQi5SEe5v+s6UTbMDD9eVkZahWVzlo6YOZ3jRm +6QaNb1RWlSe2FlkPqXNm8PGjOPuaWvwV0QqwKKKobJlCVl8DJV9I/1lJ29WQmfWJkEm /Od7L2rmw/ayvhcnQJ1U9fV8Wgpk5StRUIG5WMLBHon07p9Fq98VYtr2zmLHKPJkEPOE MYShujPVtwCEq+Ad5Zk8ugeEZ77joaW5R3/gRdE7V85EzfRoiZQIQAIhhFg1SVQ0otuk n9OK0BLl0I5cXf0XIcbgt8Ttf9TWmId/TSilZG7yz5pOOqyA5WM/9jcAGEcBSvHGlpW4 Sp9w== X-Gm-Message-State: ALoCoQnH2yx2yYe92vIcZnJVNNydLUI0lqSU7TId2PWknv+lJwkvJe2KG3viH46kvZgeMD3BtfPVb/0qwSbqgAwQNcz4xVPPww== X-Received: by 10.112.201.3 with SMTP id jw3mr15690252lbc.27.1452706720143; Wed, 13 Jan 2016 09:38:40 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id ei4sm301902lbb.18.2016.01.13.09.38.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 09:38:39 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Wed, 13 Jan 2016 19:38:32 +0200 Message-Id: <1452706712-28112-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: fix check of pktio_stop() called twice 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" The odp_pktio_stop() called is supposed to return error. Signed-off-by: Ivan Khoronzhuk Reviewed-by: Bill Fischofer --- 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 29ad4ea..1ca4979 100644 --- a/test/validation/pktio/pktio.c +++ b/test/validation/pktio/pktio.c @@ -737,7 +737,7 @@ void pktio_test_start_stop(void) /* Interfaces are stopped by default, * Check that stop when stopped generates an error */ ret = odp_pktio_stop(pktio[0]); - CU_ASSERT(ret <= 0); + CU_ASSERT(ret < 0); /* start first */ ret = odp_pktio_start(pktio[0]);