]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-json: use standard test intro 11798/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Feb 2019 11:05:49 +0000 (12:05 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 25 Feb 2019 09:07:18 +0000 (10:07 +0100)
src/test/test-json.c

index f55edfdaef4ee1feb14051199c00b87c4505cfa0..9b8a2a9422e1cc5a6808435866a0e799e54eb5d9 100644 (file)
@@ -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);