Compare commits

...

2 Commits

Author SHA1 Message Date
a63eb385b4 test: fix issues in test to fix memleak
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-07-30 22:58:55 +02:00
34dff6aaf9 build: update pipeline 2022-07-30 22:58:30 +02:00
3 changed files with 4 additions and 8 deletions

View File

@ -67,8 +67,8 @@ steps:
- name: Generate memory report - name: Generate memory report
image: registry.riba-interactive.de/reportly:latest image: registry.riba-interactive.de/reportly:latest
settings: settings:
input_path: cmake-build-ci/Testing input_path: cmake-build-ci
report_output: reports/memory_report.md output_path: .reports
debug: true debug: true
- name: Report test and coverage - name: Report test and coverage

View File

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