[dpdk-dev] app/test: fix of returning wrong value

Message ID 1449112979-25634-1-git-send-email-helin.zhang@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Zhang, Helin Dec. 3, 2015, 3:22 a.m. UTC
  In the KNI unit test, if all test cases passed, it should
return with 0. This patch fixes the issue of returning
wrong value.

Fixes: fc27caaafd4b ("kni: remove deprecated functions")

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
---
 app/test/test_kni.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Thomas Monjalon Dec. 7, 2015, 3:10 a.m. UTC | #1
2015-12-03 11:22, Helin Zhang:
> In the KNI unit test, if all test cases passed, it should
> return with 0. This patch fixes the issue of returning
> wrong value.
> 
> Fixes: fc27caaafd4b ("kni: remove deprecated functions")
> 
> Signed-off-by: Helin Zhang <helin.zhang@intel.com>

Applied, thanks
  

Patch

diff --git a/app/test/test_kni.c b/app/test/test_kni.c
index 9dad988..9ef7bcd 100644
--- a/app/test/test_kni.c
+++ b/app/test/test_kni.c
@@ -625,7 +625,7 @@  test_kni(void)
 				"a never used name string\n");
 		goto fail;
 	}
-
+	ret = 0;
 
 fail:
 	rte_eth_dev_stop(port_id);