test/log: fix dynamic log levels testing
authorRadoslaw Biernacki <radoslaw.biernacki@linaro.org>
Thu, 21 Sep 2017 18:44:09 +0000 (20:44 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 5 Oct 2017 21:16:07 +0000 (23:16 +0200)
commite25da5a0a32ea20f6fdb9195e2f2d66500b81c0f
tree5096500a1b0fa47954778fa4f5741a0132a670c7
parent0a10db80bca3262977646f814e913f4af0b627cc
test/log: fix dynamic log levels testing

This patch fixes the dynamic log levels testing in logs_autotest.
Introduction of rte_log_set_level() in patch c1b5fa94a46f was done
with parameter RTE_LOG_EMERG which caused all RTE_LOG() calls an
early return due to all given levels were far below EMERG.
If first two logs supposed to show up on console, the initial log
level must be low (DEBUG). It is than changed above ERR when we test
if TESTAPP2 log type can be filtered by log type log level.

Fixes: c1b5fa94a46f ("eal: support dynamic log types")

Signed-off-by: Radoslaw Biernacki <radoslaw.biernacki@linaro.org>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
test/test/test_logs.c