DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/test: fix of returning wrong value
@ 2015-12-03  3:22 Helin Zhang
  2015-12-07  3:10 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Helin Zhang @ 2015-12-03  3:22 UTC (permalink / raw)
  To: dev

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-07  3:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-03  3:22 [dpdk-dev] [PATCH] app/test: fix of returning wrong value Helin Zhang
2015-12-07  3:10 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).