log: correct CONFIG_LOG_TEST prerequisites

An error

	undefined reference to `do_log_test'

occurs for CONFIG_CMD_LOG=y, CONFIG_LOG_TEST=y, CONGIG_UNIT_TEST=n

Make CONFIG_UNIT_TEST a prerequisite.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Heinrich Schuchardt 2020-02-26 21:48:15 +01:00 committed by Simon Glass
parent 0544ecbfe9
commit d1a02f53b3

View file

@ -777,7 +777,7 @@ config TPL_LOG_CONSOLE
config LOG_TEST
bool "Provide a test for logging"
depends on LOG
depends on LOG && UNIT_TEST
default y if SANDBOX
help
This enables a 'log test' command to test logging. It is normally