From patchwork Wed Nov 15 15:45:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xueming Li X-Patchwork-Id: 31383 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0BDF81B1C5; Wed, 15 Nov 2017 16:46:35 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 25E991B1BD for ; Wed, 15 Nov 2017 16:46:33 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from xuemingl@mellanox.com) with ESMTPS (AES256-SHA encrypted); 15 Nov 2017 17:46:28 +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 vAFFkRZE005049; Wed, 15 Nov 2017 17:46:28 +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 vAFFkREt009002; Wed, 15 Nov 2017 23:46:27 +0800 Received: (from xuemingl@localhost) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7/Submit) id vAFFkRDB009001; Wed, 15 Nov 2017 23:46:27 +0800 From: Xueming Li To: Olivier Matz , Jingjing Wu Cc: Xueming Li , dev@dpdk.org Date: Wed, 15 Nov 2017 23:45:45 +0800 Message-Id: <20171115154545.8936-4-xuemingl@mellanox.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20171115154545.8936-1-xuemingl@mellanox.com> References: <20171115154545.8936-1-xuemingl@mellanox.com> Subject: [dpdk-dev] [PATCH 3/3] 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Support echo back in batch loading. Signed-off-by: Xueming Li Acked-by: Anatoly Burakov --- 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; }