summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-17 14:42:17 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-17 14:46:53 +0100
commitea742648adc9c03b55d4c5b407751dabf3191233 (patch)
tree63082bcf4de6bce01a41e4a352f6b26a94707993
parent59272b15304fc6960037bbcc38162346534e73d8 (diff)
efl_ui_suite: fix test code of griddevs/bu5hm4n/work_tests
this test code seemed buggy, we used the iterator *after* the content was changed. Additionally, we freed the iterator with free instead of eina_iterator_free. This fixes test test suite. Differential Revision: https://phab.enlightenment.org/D11124
-rw-r--r--src/tests/elementary/efl_ui_test_grid.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tests/elementary/efl_ui_test_grid.c b/src/tests/elementary/efl_ui_test_grid.c
index 7ec1763..db19e58 100644
--- a/src/tests/elementary/efl_ui_test_grid.c
+++ b/src/tests/elementary/efl_ui_test_grid.c
@@ -89,16 +89,15 @@ EFL_START_TEST(efl_ui_grid_unpack_all)
89 89
90 ck_assert(grid_item_pack(grid, count_before, NULL) != EINA_FALSE); 90 ck_assert(grid_item_pack(grid, count_before, NULL) != EINA_FALSE);
91 91
92 itor = efl_content_iterate(grid);
93 efl_pack_unpack_all(grid); 92 efl_pack_unpack_all(grid);
94 93
95 count = efl_content_count(grid); 94 count = efl_content_count(grid);
96 ck_assert(count == 0); 95 ck_assert(count == 0);
97 96
97 itor = efl_content_iterate(grid);
98 EINA_ITERATOR_FOREACH(itor, item) 98 EINA_ITERATOR_FOREACH(itor, item)
99 efl_del(item); 99 ck_assert(EINA_FALSE);
100 100 eina_iterator_free(itor);
101 free(itor);
102} 101}
103EFL_END_TEST 102EFL_END_TEST
104 103