tests: log_core be explicit about configuration
The log_core tests assume the logger is configured in LOG_MODE_DEFERRED, so let's set it explicitly in the test prj.conf instead of relaying on defaults. + fix a typo in test Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
parent
8499b7962d
commit
8d348f0076
2 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ CONFIG_ZTEST=y
|
|||
CONFIG_TEST_USERSPACE=y
|
||||
CONFIG_TEST_LOGGING_DEFAULTS=n
|
||||
CONFIG_LOG=y
|
||||
CONFIG_LOG_MODE_DEFERRED=y
|
||||
CONFIG_LOG_PRINTK=n
|
||||
CONFIG_LOG_RUNTIME_FILTERING=y
|
||||
CONFIG_LOG_BACKEND_UART=y
|
||||
|
|
|
@ -218,7 +218,7 @@ static void test_log_backend_runtime_filtering(void)
|
|||
}
|
||||
|
||||
/*
|
||||
* When LOG_MOVE_OVERFLOW is enabled, logger should discard oldest messages when
|
||||
* When LOG_MODE_OVERFLOW is enabled, logger should discard oldest messages when
|
||||
* there is no room. However, if after discarding all messages there is still no
|
||||
* room then current log is discarded.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue