forked from enlightenment/efl
tests/elm: explicitly denote cases where error messages are intentional
Summary: we want to make it clear in our tests where it is intended that warnings and errors may occur Depends on D9005 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9006
This commit is contained in:
parent
35f3983677
commit
79cad62203
|
@ -50,7 +50,9 @@ EFL_START_TEST(elm_code_widget_construct_nocode)
|
|||
elm_init(1, args);
|
||||
|
||||
win = win_add(NULL, "entry", ELM_WIN_BASIC);
|
||||
DISABLE_ABORT_ON_CRITICAL_START;
|
||||
widget = elm_code_widget_add(win, NULL);
|
||||
DISABLE_ABORT_ON_CRITICAL_END;
|
||||
ck_assert(!widget);
|
||||
|
||||
elm_shutdown();
|
||||
|
|
|
@ -75,14 +75,18 @@ verify_item_iteration_api(Elm_Object_Item *parent)
|
|||
{
|
||||
it = elm_genlist_nth_item_get(genlist, i);
|
||||
if (i == 11)
|
||||
DISABLE_ABORT_ON_CRITICAL_START;
|
||||
// item #11 do not exists
|
||||
ck_assert_int_eq(elm_genlist_item_index_get(it), -1);
|
||||
DISABLE_ABORT_ON_CRITICAL_END;
|
||||
else
|
||||
ck_assert_int_eq(elm_genlist_item_index_get(it), i + 1);
|
||||
|
||||
if ((i == 0) || (i == 11))
|
||||
DISABLE_ABORT_ON_CRITICAL_START;
|
||||
// test first and item #11 (that do not exists)
|
||||
ck_assert_ptr_eq(elm_object_item_data_get(it), NULL);
|
||||
DISABLE_ABORT_ON_CRITICAL_END;
|
||||
else
|
||||
ck_assert_ptr_eq(elm_object_item_data_get(it), (void*)(uintptr_t)i);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue