[dpdk-dev] app/test: fix kni test always failed

Message ID 1448598586-8462-1-git-send-email-yong.liu@intel.com (mailing list archive)
State Superseded, archived
Headers

Commit Message

Marvin Liu Nov. 27, 2015, 4:29 a.m. UTC
  After all test functions called, return value should be reset to sucessful.

Signed-off-by: Marvin Liu <yong.liu@intel.com>
  

Patch

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);