1
0
mirror of https://github.com/systemd/systemd.git synced 2025-08-24 09:49:49 +03:00

test: Use log_setup()

Specifically, this will make tests log to the journal if stderr is
connected to the journal. This means we get proper log priorities
and such compared to if we just logged to stderr.
This commit is contained in:
Daan De Meyer
2024-04-21 18:29:43 +02:00
parent 26d79ab86d
commit b8c6c35804

View File

@ -116,8 +116,7 @@ bool slow_tests_enabled(void) {
void test_setup_logging(int level) {
log_set_assert_return_is_critical(true);
log_set_max_level(level);
log_parse_environment();
log_open();
log_setup();
}
int write_tmpfile(char *pattern, const char *contents) {