Home
last modified time | relevance | path

Searched refs:tail_minus_1 (Results 1 – 4 of 4) sorted by relevance

/sof-3.4.0/test/cmocka/src/list/
Dlist_item_del.c18 struct list_item *tail_minus_1; member
30 data->tail_minus_1 = malloc(sizeof(struct list_item)); in setup()
33 if (!data->head || !data->tail_minus_1 in setup()
36 free(data->tail_minus_1); in setup()
45 list_init(data->tail_minus_1); in setup()
48 list_item_append(data->tail_minus_1, data->head); in setup()
60 free(data->tail_minus_1); in teardown()
73 assert_ptr_equal(data->tail_minus_1->prev, data->tail); in test_list_list_item_del_when_delete_head_then_tail_minus_1_prev_is_tail()
82 assert_ptr_equal(data->tail_minus_1->next, data->tail); in test_list_list_item_del_when_delete_head_then_tail_minus_1_next_is_tail()
91 assert_ptr_equal(data->tail->prev, data->tail_minus_1); in test_list_list_item_del_when_delete_head_then_tail_prev_is_tail_minus_1()
[all …]
Dlist_item_append.c18 struct list_item *tail_minus_1; member
30 data->tail_minus_1 = malloc(sizeof(struct list_item)); in setup()
33 if (!data->head || !data->tail_minus_1 in setup()
36 free(data->tail_minus_1); in setup()
45 list_init(data->tail_minus_1); in setup()
48 list_item_append(data->tail_minus_1, data->head); in setup()
60 free(data->tail_minus_1); in teardown()
78 assert_ptr_equal(data->head->next, data->tail_minus_1); in test_list_list_item_append_head_next_is_tail_minus_1()
85 assert_ptr_equal(data->tail_minus_1->prev, data->head); in test_list_list_item_append_tail_minus_1_prev_is_head()
92 assert_ptr_equal(data->tail_minus_1->next, data->tail); in test_list_list_item_append_tail_minus_1_next_is_tail()
[all …]
Dlist_item_prepend.c18 struct list_item *tail_minus_1; member
30 data->tail_minus_1 = malloc(sizeof(struct list_item)); in setup()
33 if (!data->head || !data->tail_minus_1 in setup()
36 free(data->tail_minus_1); in setup()
45 list_init(data->tail_minus_1); in setup()
49 list_item_prepend(data->tail_minus_1, data->head); in setup()
60 free(data->tail_minus_1); in teardown()
78 assert_ptr_equal(data->head->next, data->tail_minus_1); in test_list_list_item_prepend_head_next_is_tail_minus_1()
85 assert_ptr_equal(data->tail_minus_1->prev, data->head); in test_list_list_item_prepend_tail_minus_1_prev_is_head()
92 assert_ptr_equal(data->tail_minus_1->next, data->tail); in test_list_list_item_prepend_tail_minus_1_next_is_tail()
[all …]
Dlist_item_is_last.c18 struct list_item *tail_minus_1; member
30 data->tail_minus_1 = malloc(sizeof(struct list_item)); in setup()
33 if (!data->head || !data->tail_minus_1 in setup()
36 free(data->tail_minus_1); in setup()
45 list_init(data->tail_minus_1); in setup()
48 list_item_append(data->tail_minus_1, data->head); in setup()
60 free(data->tail_minus_1); in teardown()
78 assert_false(list_item_is_last(data->tail_minus_1, data->head)); in test_list_list_item_is_last_when_tail_minus_1_then_false()