From f120a612e72092745684b3cc6028edcc0575346f Mon Sep 17 00:00:00 2001 From: Jakob Olsson <Jakob Olsson> Date: Tue, 10 Dec 2019 10:12:01 +0100 Subject: [PATCH] minor cleanup of test file --- test/schema_test.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/schema_test.c b/test/schema_test.c index f1b345b..8ddd993 100644 --- a/test/schema_test.c +++ b/test/schema_test.c @@ -10,7 +10,7 @@ #include <json-editor.h> #include "json-validator.h" -//#include "schema.h" + int cp(const char *to, const char *from) { @@ -65,17 +65,12 @@ out_error: return -1; } - -/* A test case that does nothing and succeeds. */ -static void null_test_success(void **state) { - (void) state; /* unused */ -} - - static void test_parse_invalid_schema(void **state) { (void) state; /* unused */ + /* no asserts, just check memory managment */ + /* invalid json */ cp("/usr/share/rpcd/schemas/invalid.json", "/opt/work/test/files/invalid_schemas/incomplete.json"); schema_validator_init(); @@ -204,7 +199,6 @@ static void test_validate_input_document_blob(void **state) schema_validator_destroy(); } - static void test_validate_output_document_blob(void **state) { (void *) state; @@ -241,7 +235,6 @@ static int create_teardown(void** state) { return 0; } - int main(void) { const struct CMUnitTest tests[] = { cmocka_unit_test(test_validator_create_nothing), -- GitLab