test-json: use standard test intro

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-02-25 10:07:18 +01:00
parent b6cda3ec4d
commit adbdcfbe63
+2 -4
View 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);