test-json: use standard test intro
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user