tests/shell: add command with empty output
This commit is contained in:
parent
271d1ae3a2
commit
bd96e4b400
@ -87,11 +87,19 @@ static int print_shell_bufsize(int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int print_empty(int argc, char **argv)
|
||||||
|
{
|
||||||
|
(void) argc;
|
||||||
|
(void) argv;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static const shell_command_t shell_commands[] = {
|
static const shell_command_t shell_commands[] = {
|
||||||
{ "bufsize", "Get the shell's buffer size", print_shell_bufsize },
|
{ "bufsize", "Get the shell's buffer size", print_shell_bufsize },
|
||||||
{ "start_test", "starts a test", print_teststart },
|
{ "start_test", "starts a test", print_teststart },
|
||||||
{ "end_test", "ends a test", print_testend },
|
{ "end_test", "ends a test", print_testend },
|
||||||
{ "echo", "prints the input command", print_echo },
|
{ "echo", "prints the input command", print_echo },
|
||||||
|
{ "empty", "print nothing on command", print_empty },
|
||||||
{ NULL, NULL, NULL }
|
{ NULL, NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user