From patchwork Fri Nov 27 04:29:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Liu X-Patchwork-Id: 9150 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id B841E5A35; Fri, 27 Nov 2015 05:29:54 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 77AD35A08 for ; Fri, 27 Nov 2015 05:29:53 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 26 Nov 2015 20:29:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,350,1444719600"; d="scan'208";a="2902204" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga004.fm.intel.com with ESMTP; 26 Nov 2015 20:29:52 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id tAR4To9u030163; Fri, 27 Nov 2015 12:29:50 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id tAR4Tlk1008498; Fri, 27 Nov 2015 12:29:49 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id tAR4Tl4L008494; Fri, 27 Nov 2015 12:29:47 +0800 From: Yong Liu To: dev@dpdk.org Date: Fri, 27 Nov 2015 12:29:46 +0800 Message-Id: <1448598586-8462-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] app/test: fix kni test always failed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" After all test functions called, return value should be reset to sucessful. Signed-off-by: Marvin Liu diff --git a/app/test/test_kni.c b/app/test/test_kni.c index 9dad988..329acb2 100644 --- a/app/test/test_kni.c +++ b/app/test/test_kni.c @@ -626,6 +626,7 @@ test_kni(void) goto fail; } + ret = 0; fail: rte_eth_dev_stop(port_id);