diff --git a/test/schema_test.c b/test/schema_test.c index f1b345b81d5ac06bc7c5bc4f75b972998e1e57b3..8ddd9934167cfea3a47f9477a69adf3ea9f8d3ad 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),