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:
Alberto Escolar Piedras 2021-04-10 12:24:04 +02:00 committed by Anas Nashif
commit 8d348f0076
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ CONFIG_ZTEST=y
CONFIG_TEST_USERSPACE=y CONFIG_TEST_USERSPACE=y
CONFIG_TEST_LOGGING_DEFAULTS=n CONFIG_TEST_LOGGING_DEFAULTS=n
CONFIG_LOG=y CONFIG_LOG=y
CONFIG_LOG_MODE_DEFERRED=y
CONFIG_LOG_PRINTK=n CONFIG_LOG_PRINTK=n
CONFIG_LOG_RUNTIME_FILTERING=y CONFIG_LOG_RUNTIME_FILTERING=y
CONFIG_LOG_BACKEND_UART=y CONFIG_LOG_BACKEND_UART=y

View file

@ -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 * there is no room. However, if after discarding all messages there is still no
* room then current log is discarded. * room then current log is discarded.
*/ */