test: add memory check, reporting and fix some memleaks in tests #14

Merged
rick merged 5 commits from feature/memcheck into develop 2022-07-30 23:10:31 +02:00
2 changed files with 2 additions and 6 deletions
Showing only changes of commit ce694d1eed - Show all commits

View File

@ -112,11 +112,7 @@ spec("hashtable") {
value *value = value_new(1337);
check(value_hashtable_insert(hashtable, key, value) == 0);
check(value != NULL, "value should not be NULL");
//value_destroy(&value);
free(value);
free(value);
value_new(1234);
free(NULL);
value_destroy(&value);
}
it("should return 0 with NULL as this param") {

View File

@ -135,7 +135,7 @@ spec("list") {
it("should return 0 with NULL as this param") {
value *value = value_new(1);
check(value_list_unshift(NULL, value) == 0, "return should not be 0");
//value_destroy(&value);
value_destroy(&value);
}
it("should return 0 with NULL as valueElement param") {