diff --git a/c/todo.txt b/c/todo.txt index 99bdc1a46..62b8cfe21 100644 --- a/c/todo.txt +++ b/c/todo.txt @@ -1,7 +1,7 @@ ================================================================ BUGFIXES -!! failure in test_multiple_containers in travis but ok on localbox even with fresh checkout -- needs debugging !! +:D ================================================================ TOP OF LIST diff --git a/c/unit_test/test_multiple_containers.c b/c/unit_test/test_multiple_containers.c index 470cd7381..f4538a752 100644 --- a/c/unit_test/test_multiple_containers.c +++ b/c/unit_test/test_multiple_containers.c @@ -81,10 +81,11 @@ static char* test_sllv() { mu_assert_lf(pe != NULL); mu_assert_lf(streq(pe->pvdata, "e")); pe = pe->pnext; mu_assert_lf(pe == NULL); + // sllv_append frees the control structure for its second argument so do no + // assertions there pa = sllv_append(pa, pb); mu_assert_lf(pa->length == 5); - mu_assert_lf(pb->length == 2); pe = pa->phead; mu_assert_lf(pe != NULL); mu_assert_lf(streq(pe->pvdata, "a")); pe = pe->pnext; @@ -94,11 +95,6 @@ static char* test_sllv() { mu_assert_lf(pe != NULL); mu_assert_lf(streq(pe->pvdata, "e")); pe = pe->pnext; mu_assert_lf(pe == NULL); - pe = pb->phead; - mu_assert_lf(pe != NULL); mu_assert_lf(streq(pe->pvdata, "d")); pe = pe->pnext; - mu_assert_lf(pe != NULL); mu_assert_lf(streq(pe->pvdata, "e")); pe = pe->pnext; - mu_assert_lf(pe == NULL); - return NULL; }