git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: fix C++ compilation after headers rework
[dpdk.git]
/
app
/
test
/
test_cmdline_etheraddr.c
diff --git
a/app/test/test_cmdline_etheraddr.c
b/app/test/test_cmdline_etheraddr.c
index
739f249
..
45c61ff
100644
(file)
--- a/
app/test/test_cmdline_etheraddr.c
+++ b/
app/test/test_cmdline_etheraddr.c
@@
-146,7
+146,7
@@
test_parse_etheraddr_invalid_param(void)
/* try null result */
/* copy string to buffer */
/* try null result */
/* copy string to buffer */
-
rte_
snprintf(buf, sizeof(buf), "%s",
+ snprintf(buf, sizeof(buf), "%s",
ether_addr_valid_strs[0].str);
ret = cmdline_parse_etheraddr(NULL, buf, NULL);
ether_addr_valid_strs[0].str);
ret = cmdline_parse_etheraddr(NULL, buf, NULL);
@@
-161,13
+161,6
@@
test_parse_etheraddr_invalid_param(void)
/* test help function */
memset(&buf, 0, sizeof(buf));
/* test help function */
memset(&buf, 0, sizeof(buf));
- /* try null buf */
- ret = cmdline_get_help_etheraddr(NULL, NULL, sizeof(buf));
- if (ret != -1) {
- printf("Error: help function accepted null buffer!\n");
- return -1;
- }
-
/* coverage! */
ret = cmdline_get_help_etheraddr(NULL, buf, sizeof(buf));
if (ret < 0) {
/* coverage! */
ret = cmdline_get_help_etheraddr(NULL, buf, sizeof(buf));
if (ret < 0) {