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
3a88a71a26
commit
68e299c17e
|
@ -50,7 +50,9 @@ EFL_START_TEST(elm_code_widget_construct_nocode)
|
||||||
elm_init(1, args);
|
elm_init(1, args);
|
||||||
|
|
||||||
win = win_add(NULL, "entry", ELM_WIN_BASIC);
|
win = win_add(NULL, "entry", ELM_WIN_BASIC);
|
||||||
|
DISABLE_ABORT_ON_CRITICAL_START;
|
||||||
widget = elm_code_widget_add(win, NULL);
|
widget = elm_code_widget_add(win, NULL);
|
||||||
|
DISABLE_ABORT_ON_CRITICAL_END;
|
||||||
ck_assert(!widget);
|
ck_assert(!widget);
|
||||||
|
|
||||||
elm_shutdown();
|
elm_shutdown();
|
||||||
|
|
|
@ -73,14 +73,18 @@ verify_item_iteration_api(Elm_Object_Item *parent)
|
||||||
{
|
{
|
||||||
it = elm_genlist_nth_item_get(genlist, i);
|
it = elm_genlist_nth_item_get(genlist, i);
|
||||||
if (i == 11)
|
if (i == 11)
|
||||||
|
DISABLE_ABORT_ON_CRITICAL_START;
|
||||||
// item #11 do not exists
|
// item #11 do not exists
|
||||||
ck_assert_int_eq(elm_genlist_item_index_get(it), -1);
|
ck_assert_int_eq(elm_genlist_item_index_get(it), -1);
|
||||||
|
DISABLE_ABORT_ON_CRITICAL_END;
|
||||||
else
|
else
|
||||||
ck_assert_int_eq(elm_genlist_item_index_get(it), i + 1);
|
ck_assert_int_eq(elm_genlist_item_index_get(it), i + 1);
|
||||||
|
|
||||||
if ((i == 0) || (i == 11))
|
if ((i == 0) || (i == 11))
|
||||||
|
DISABLE_ABORT_ON_CRITICAL_START;
|
||||||
// test first and item #11 (that do not exists)
|
// test first and item #11 (that do not exists)
|
||||||
ck_assert_ptr_eq(elm_object_item_data_get(it), NULL);
|
ck_assert_ptr_eq(elm_object_item_data_get(it), NULL);
|
||||||
|
DISABLE_ABORT_ON_CRITICAL_END;
|
||||||
else
|
else
|
||||||
ck_assert_ptr_eq(elm_object_item_data_get(it), (void*)(uintptr_t)i);
|
ck_assert_ptr_eq(elm_object_item_data_get(it), (void*)(uintptr_t)i);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue