From: Xueming Li <xuemingl@mellanox.com>
To: Olivier Matz <olivier.matz@6wind.com>,
Jingjing Wu <jingjing.wu@intel.com>
Cc: Xueming Li <xuemingl@mellanox.com>, dev@dpdk.org
Subject: [dpdk-dev] [PATCH 3/3] test: update batch loading test
Date: Wed, 15 Nov 2017 23:45:45 +0800 [thread overview]
Message-ID: <20171115154545.8936-4-xuemingl@mellanox.com> (raw)
In-Reply-To: <20171115154545.8936-1-xuemingl@mellanox.com>
Support echo back in batch loading.
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
---
test/test/test_cmdline_lib.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/test/test_cmdline_lib.c b/test/test/test_cmdline_lib.c
index 65b823a72..c700671d1 100644
--- a/test/test/test_cmdline_lib.c
+++ b/test/test/test_cmdline_lib.c
@@ -165,17 +165,17 @@ test_cmdline_socket_fns(void)
goto error;
if (cmdline_stdin_new(&ctx, NULL) != NULL)
goto error;
- if (cmdline_file_new(NULL, "prompt", "/dev/null") != NULL)
+ if (cmdline_file_new(NULL, "prompt", "/dev/null", 0) != NULL)
goto error;
- if (cmdline_file_new(&ctx, NULL, "/dev/null") != NULL)
+ if (cmdline_file_new(&ctx, NULL, "/dev/null", 0) != NULL)
goto error;
- if (cmdline_file_new(&ctx, "prompt", NULL) != NULL)
+ if (cmdline_file_new(&ctx, "prompt", NULL, 0) != NULL)
goto error;
- if (cmdline_file_new(&ctx, "prompt", "-/invalid/~/path") != NULL) {
+ if (cmdline_file_new(&ctx, "prompt", "-/invalid/~/path", 0) != NULL) {
printf("Error: succeeded in opening invalid file for reading!");
return -1;
}
- if (cmdline_file_new(&ctx, "prompt", "/dev/null") == NULL) {
+ if (cmdline_file_new(&ctx, "prompt", "/dev/null", 0) == NULL) {
printf("Error: failed to open /dev/null for reading!");
return -1;
}
--
2.13.3
next prev parent reply other threads:[~2017-11-15 15:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-15 15:45 [dpdk-dev] [PATCH 0/3] enable echo when CLI loading from file Xueming Li
2017-11-15 15:45 ` [dpdk-dev] [PATCH 1/3] lib/cmdline: add echo support in batch " Xueming Li
2017-12-11 12:29 ` Burakov, Anatoly
2017-12-19 10:30 ` Olivier MATZ
2017-12-19 11:20 ` Xueming(Steven) Li
2017-12-26 14:25 ` [dpdk-dev] [PATCH v1] app/testpmd: support command echo in CLI batch loading Xueming Li
2018-01-10 8:35 ` Lu, Wenzhuo
2018-01-10 8:51 ` Xueming(Steven) Li
2018-01-10 12:25 ` Lu, Wenzhuo
2018-01-10 14:14 ` Xueming(Steven) Li
2017-11-15 15:45 ` [dpdk-dev] [PATCH 2/3] " Xueming Li
2017-12-11 12:36 ` Burakov, Anatoly
2017-11-15 15:45 ` Xueming Li [this message]
2017-12-11 12:33 ` [dpdk-dev] [PATCH 3/3] test: update batch loading test Burakov, Anatoly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171115154545.8936-4-xuemingl@mellanox.com \
--to=xuemingl@mellanox.com \
--cc=dev@dpdk.org \
--cc=jingjing.wu@intel.com \
--cc=olivier.matz@6wind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).