summaryrefslogtreecommitdiff
path: root/src/test/test-json.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-02-22 12:05:49 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-02-25 10:07:18 +0100
commitadbdcfbe6377439999a2fb6b31e74a57ace0baeb (patch)
tree28f0657ea61d4707140827fca5c04460c0747a9b /src/test/test-json.c
parentb6cda3ec4dd0c7a9d5c43cb001326f3c0ccad116 (diff)
downloadsystemd-adbdcfbe6377439999a2fb6b31e74a57ace0baeb.tar.gz
test-json: use standard test intro
Diffstat (limited to 'src/test/test-json.c')
-rw-r--r--src/test/test-json.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/test-json.c b/src/test/test-json.c
index f55edfdaef..9b8a2a9422 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);