diff options
Diffstat (limited to 'test/log/log_test.c')
-rw-r--r-- | test/log/log_test.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/log/log_test.c b/test/log/log_test.c index 4245372d65..6a60ff6be3 100644 --- a/test/log/log_test.c +++ b/test/log/log_test.c @@ -196,12 +196,18 @@ static int log_test(int testnum) log_io("level %d\n", LOGL_DEBUG_IO); break; } + case 11: + log_err("default\n"); + ret = log_device_set_enable(LOG_GET_DRIVER(console), false); + log_err("disabled\n"); + ret = log_device_set_enable(LOG_GET_DRIVER(console), true); + log_err("enabled\n"); + break; } return 0; } -#ifdef CONFIG_LOG_TEST int do_log_test(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { int testnum = 0; @@ -216,4 +222,3 @@ int do_log_test(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) return ret ? CMD_RET_FAILURE : 0; } -#endif |