From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id B254F7CBD for ; Fri, 8 Dec 2017 09:23:06 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from xuemingl@mellanox.com) with ESMTPS (AES256-SHA encrypted); 8 Dec 2017 10:23:05 +0200 Received: from dev-r630-06.mtbc.labs.mlnx (dev-r630-06.mtbc.labs.mlnx [10.12.205.180]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id vB88N4lP001021; Fri, 8 Dec 2017 10:23:05 +0200 Received: from dev-r630-06.mtbc.labs.mlnx (localhost [127.0.0.1]) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7) with ESMTP id vB88N4ib045180; Fri, 8 Dec 2017 16:23:04 +0800 Received: (from xuemingl@localhost) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7/Submit) id vB88N4aH045179; Fri, 8 Dec 2017 16:23:04 +0800 From: Xueming Li To: Wu Jingjing , Harry van Haaren Cc: Xueming Li , dev@dpdk.org Date: Fri, 8 Dec 2017 16:22:19 +0800 Message-Id: <20171208082225.44913-4-xuemingl@mellanox.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20171208082225.44913-1-xuemingl@mellanox.com> References: <20171208082225.44913-1-xuemingl@mellanox.com> In-Reply-To: <20171019140649.26668-2-xuemingl@mellanox.com> References: <20171019140649.26668-2-xuemingl@mellanox.com> Subject: [dpdk-dev] [RFC v1 3/9] test: update batch loading test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2017 08:23:07 -0000 Support echo back in batch loading. Signed-off-by: Xueming Li --- 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