diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-02-22 12:05:49 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-02-25 10:07:18 +0100 |
commit | adbdcfbe6377439999a2fb6b31e74a57ace0baeb (patch) | |
tree | 28f0657ea61d4707140827fca5c04460c0747a9b /src/test/test-json.c | |
parent | b6cda3ec4dd0c7a9d5c43cb001326f3c0ccad116 (diff) | |
download | systemd-adbdcfbe6377439999a2fb6b31e74a57ace0baeb.tar.gz |
test-json: use standard test intro
Diffstat (limited to 'src/test/test-json.c')
-rw-r--r-- | src/test/test-json.c | 6 |
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); |