Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-12-19 13:49:39 +0300
committerPetr Štetiar <ynezz@true.cz>2020-05-21 14:43:00 +0300
commit7c4ef0d9ae28525f70c09ff77b71015408bc3e62 (patch)
tree1a55f4da7380f4867cbe650defa461964f3c507c /tests/cram
parent7da66430de3fc235bfc6ebb0b85fb90ea246138d (diff)
tests: list: add test case for list_empty iterator
Increasing unit testing code coverage. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'tests/cram')
-rw-r--r--tests/cram/test_list.t22
1 files changed, 16 insertions, 6 deletions
diff --git a/tests/cram/test_list.t b/tests/cram/test_list.t
index 81affad..1417407 100644
--- a/tests/cram/test_list.t
+++ b/tests/cram/test_list.t
@@ -2,9 +2,9 @@ check that list is producing expected results:
$ [ -n "$TEST_BIN_DIR" ] && export PATH="$TEST_BIN_DIR:$PATH"
$ valgrind --quiet --leak-check=full test-list
- test_basics: list_empty: yes
- test_basics: list_add_tail: zero one two three four five six seven eight nine ten eleven twelve
- test_basics: list_empty: no
+ init_list: list_empty: yes
+ init_list: list_add_tail: zero one two three four five six seven eight nine ten eleven twelve
+ init_list: list_empty: no
test_basics: first=zero last=twelve
test_basics: 'zero' is first, yes
test_basics: 'twelve' is last, yes
@@ -20,11 +20,16 @@ check that list is producing expected results:
test_basics: list_for_each_entry_reverse: one eleven ten nine eight seven six five four three two
test_basics: delete all entries
test_basics: list_empty: yes
+ init_list: list_empty: yes
+ init_list: list_add_tail: zero one two three four five six seven eight nine ten eleven twelve
+ init_list: list_empty: no
+ test_while_list_empty: delete all entries
+ test_while_list_empty: list_empty: yes
$ test-list-san
- test_basics: list_empty: yes
- test_basics: list_add_tail: zero one two three four five six seven eight nine ten eleven twelve
- test_basics: list_empty: no
+ init_list: list_empty: yes
+ init_list: list_add_tail: zero one two three four five six seven eight nine ten eleven twelve
+ init_list: list_empty: no
test_basics: first=zero last=twelve
test_basics: 'zero' is first, yes
test_basics: 'twelve' is last, yes
@@ -40,3 +45,8 @@ check that list is producing expected results:
test_basics: list_for_each_entry_reverse: one eleven ten nine eight seven six five four three two
test_basics: delete all entries
test_basics: list_empty: yes
+ init_list: list_empty: yes
+ init_list: list_add_tail: zero one two three four five six seven eight nine ten eleven twelve
+ init_list: list_empty: no
+ test_while_list_empty: delete all entries
+ test_while_list_empty: list_empty: yes