Skip to content
Snippets Groups Projects
Commit f120a612 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

minor cleanup of test file

parent e6eca16b
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <json-editor.h> #include <json-editor.h>
#include "json-validator.h" #include "json-validator.h"
//#include "schema.h"
int cp(const char *to, const char *from) int cp(const char *to, const char *from)
{ {
...@@ -65,17 +65,12 @@ out_error: ...@@ -65,17 +65,12 @@ out_error:
return -1; 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) static void test_parse_invalid_schema(void **state)
{ {
(void) state; /* unused */ (void) state; /* unused */
/* no asserts, just check memory managment */
/* invalid json */ /* invalid json */
cp("/usr/share/rpcd/schemas/invalid.json", "/opt/work/test/files/invalid_schemas/incomplete.json"); cp("/usr/share/rpcd/schemas/invalid.json", "/opt/work/test/files/invalid_schemas/incomplete.json");
schema_validator_init(); schema_validator_init();
...@@ -204,7 +199,6 @@ static void test_validate_input_document_blob(void **state) ...@@ -204,7 +199,6 @@ static void test_validate_input_document_blob(void **state)
schema_validator_destroy(); schema_validator_destroy();
} }
static void test_validate_output_document_blob(void **state) static void test_validate_output_document_blob(void **state)
{ {
(void *) state; (void *) state;
...@@ -241,7 +235,6 @@ static int create_teardown(void** state) { ...@@ -241,7 +235,6 @@ static int create_teardown(void** state) {
return 0; return 0;
} }
int main(void) { int main(void) {
const struct CMUnitTest tests[] = { const struct CMUnitTest tests[] = {
cmocka_unit_test(test_validator_create_nothing), cmocka_unit_test(test_validator_create_nothing),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment