Skip to contentSkip to conversation

app/test: fix of returning wrong value

PATCH Applied Helin Zhang 2 participants 2 messages Dec 3, 2015 – Dec 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/test: fix of returning wrong value

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")
---
 app/test/test_kni.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test/test_kni.c +1 -1
index 9dad988..9ef7bcd 100644
@@ -625,7 +625,7 @@ test_kni(void)
 				"a never used name string\n");
 		goto fail;
 	}
-
+	ret = 0;
 
 fail:
 	rte_eth_dev_stop(port_id);
Signature · 1 line
1.9.3
#1 lore raw

2015-12-03 11:22, Helin Zhang:

Quoted 7 lines

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

Applied, thanks