aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-03-04 13:54:04 -0800
committerDan Fandrich <dan@coneharvesters.com>2011-03-04 13:54:04 -0800
commita8aab6e7d45fe1e325100c6c5938a4258327dd08 (patch)
treef7deb1e8df96af3881c1044333f91afc5d3dff47 /tests/unit
parent32aedf1d3d17fb2103c6a2ee3642a25a6086c68e (diff)
Fixed test 1300 to pass the torture test
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/unit1300.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/unit1300.c b/tests/unit/unit1300.c
index 92207011e..e37f62767 100644
--- a/tests/unit/unit1300.c
+++ b/tests/unit/unit1300.c
@@ -128,6 +128,7 @@ UNITTEST_START
*/
head=llist->head;
+ abort_unless(head, "llist->head is NULL");
element_next = head->next;
llist_size = Curl_llist_count(llist);
@@ -137,6 +138,7 @@ UNITTEST_START
"llist size not decremented as expected");
fail_unless(llist->head == element_next,
"llist new head not modified properly");
+ abort_unless(llist->head, "llist->head is NULL");
fail_unless(llist->head->prev == NULL,
"new head previous not set to null");
@@ -153,11 +155,13 @@ UNITTEST_START
Curl_llist_insert_next(llist, llist->head, &unusedData_case3);
llist_size = Curl_llist_count(llist);
to_remove = llist->head->next;
+ abort_unless(to_remove, "to_remove is NULL");
element_next = to_remove->next;
element_prev = to_remove->prev;
Curl_llist_remove(llist, to_remove, NULL);
fail_unless(element_prev->next == element_next,
"element previous->next is not being adjusted");
+ abort_unless(element_next, "element_next is NULL");
fail_unless(element_next->prev == element_prev,
"element next->previous is not being adjusted");