From adbdcfbe6377439999a2fb6b31e74a57ace0baeb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 22 Feb 2019 12:05:49 +0100 Subject: [PATCH] test-json: use standard test intro --- src/test/test-json.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/test-json.c b/src/test/test-json.c index f55edfdaef4..9b8a2a9422e 100644 --- a/src/test/test-json.c +++ b/src/test/test-json.c @@ -8,6 +8,7 @@ #include "json.h" #include "string-util.h" #include "strv.h" +#include "tests.h" #include "util.h" static void test_tokenizer(const char *data, ...) { @@ -410,10 +411,7 @@ static void test_depth(void) { } int main(int argc, char *argv[]) { - - log_set_max_level(LOG_DEBUG); - log_parse_environment(); - log_open(); + test_setup_logging(LOG_DEBUG); test_tokenizer("x", -EINVAL); test_tokenizer("", JSON_TOKEN_END); -- 2.47.3