diff --git a/README.md b/README.md index 22433e0769915bc589e45b3522fe2deab6ea0b65..d9aca46f4f05a548eb810cf78a34b9abe5cdd61e 100644 --- a/README.md +++ b/README.md @@ -33,5 +33,4 @@ TODO === - Reimplement the `reload` method provided by existing scripts -- Tests - Integration in the OS build \ No newline at end of file diff --git a/test/cmocka/functional_test_qos.c b/test/cmocka/functional_test_qos.c index 075f56a5cf2f64a5aa02babe20a06aadf8b83f88..a307218bd34eb96a52e87f95dec9c1488ab8ad80 100644 --- a/test/cmocka/functional_test_qos.c +++ b/test/cmocka/functional_test_qos.c @@ -49,13 +49,6 @@ static int group_teardown(void **state) return 0; } -static int setup(void **state) -{ - struct test_ctx *ctx = (struct test_ctx *) *state; - - return 0; -} - int main(void) { const struct CMUnitTest tests[] = { }; diff --git a/test/cmocka/unit_test_qos.c b/test/cmocka/unit_test_qos.c index 960dbe946fd2d190606305deaa128413e42d7caf..e3019885cc9f820decdd86231b4f88d045abb361 100644 --- a/test/cmocka/unit_test_qos.c +++ b/test/cmocka/unit_test_qos.c @@ -37,7 +37,7 @@ int ubus_send_reply(struct ubus_context *ctx, struct ubus_request_data *req, char *multi_tok(char *input, char *delimiter) { static char *string; - char *end, temp; + char *end, *temp; if (input) string = input; @@ -70,11 +70,10 @@ struct json_object *poll_test_log(FILE *fp, const char *prefix) char msg[256] = {0}; struct json_object *obj = NULL; - //if (!fp) { fp = fopen("/tmp/test.log", "r"); - if (!fp) + if (!fp) { return NULL; - //} + } while (fgets(line, 256, fp)) { char *ptr, *s; @@ -129,15 +128,6 @@ static int group_teardown(void **state) return 0; } -static int setup(void **state) -{ - struct test_ctx *ctx = (struct test_ctx *) *state; - - blob_buf_init(&ctx->bb, 0); - - return 0; -} - int main(void) { const struct CMUnitTest tests[] = {