NetworkManager/src/tests/config
Thomas Haller b6d3b98655 test: setup logging during nmtst_init_assert_logging()
Before, when having a test with nmtst_init_assert_logging(),
the caller was expected to setup logging separately according
to the log level that the test asserts against.

Since 5e74891b58, the logging
level can be reset via NMTST_DEBUG also for tests that
assert logging. In this case, it would be useful, if the test
would not overwrite the logging level that is set externally
via NMTST_DEBUG.

Instead, let the test pass the logging configuration to
nmtst_init_assert_logging(), and nmtst will setup logging
-- either according to NMTST_DEBUG or as passed in.

This way, setting the log level works also for no-expect-message
tests:

  NMTST_DEBUG="debug,no-expect-message,log-level=TRACE" $TEST
2015-04-08 14:39:16 +02:00
..
conf.d core: merge src/config, src/logging, src/posix-signals into src/ 2014-07-30 15:56:29 -04:00
bad.conf core: merge src/config, src/logging, src/posix-signals into src/ 2014-07-30 15:56:29 -04:00
Makefile.am tests: enable valgrind tests for tests 2015-02-09 11:51:07 +01:00
NetworkManager.conf core: merge src/config, src/logging, src/posix-signals into src/ 2014-07-30 15:56:29 -04:00
nm-test-device.c config/tests: fix memleak in test code for valgrind 2015-02-09 11:51:07 +01:00
nm-test-device.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
test-config.c test: setup logging during nmtst_init_assert_logging() 2015-04-08 14:39:16 +02:00