efl_ui_suite: fix test code of grid

Summary:
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.
Depends on D11123

Reviewers: raster, zmike, cedric, segfaultxavi

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11124
This commit is contained in:
Marcel Hollerbach 2020-01-17 09:49:13 -05:00 committed by Mike Blumenkrantz
parent cf45cbf6dd
commit 4250494f11
1 changed files with 3 additions and 4 deletions

View File

@ -89,16 +89,15 @@ EFL_START_TEST(efl_ui_grid_unpack_all)
ck_assert(grid_item_pack(grid, count_before, NULL) != EINA_FALSE);
itor = efl_content_iterate(grid);
efl_pack_unpack_all(grid);
count = efl_content_count(grid);
ck_assert(count == 0);
itor = efl_content_iterate(grid);
EINA_ITERATOR_FOREACH(itor, item)
efl_del(item);
free(itor);
ck_assert(EINA_FALSE);
eina_iterator_free(itor);
}
EFL_END_TEST