From: Zbigniew Jędrzejewski-Szmek Date: Fri, 22 Feb 2019 11:05:49 +0000 (+0100) Subject: test-json: use standard test intro X-Git-Tag: v242-rc1~250^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11798%2Fhead;p=thirdparty%2Fsystemd.git test-json: use standard test intro --- 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);