From bd96e4b4005a0a742e73d619f700bb38a0577e2e Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 9 Feb 2021 15:03:19 +0100 Subject: [PATCH] tests/shell: add command with empty output --- tests/shell/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/shell/main.c b/tests/shell/main.c index 23f7c67021..376b6e7008 100644 --- a/tests/shell/main.c +++ b/tests/shell/main.c @@ -87,11 +87,19 @@ static int print_shell_bufsize(int argc, char **argv) return 0; } +static int print_empty(int argc, char **argv) +{ + (void) argc; + (void) argv; + return 0; +} + static const shell_command_t shell_commands[] = { { "bufsize", "Get the shell's buffer size", print_shell_bufsize }, { "start_test", "starts a test", print_teststart }, { "end_test", "ends a test", print_testend }, { "echo", "prints the input command", print_echo }, + { "empty", "print nothing on command", print_empty }, { NULL, NULL, NULL } };