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:
Mike Blumenkrantz 2019-05-29 09:31:54 -04:00
parent 3a88a71a26
commit 68e299c17e
2 changed files with 6 additions and 0 deletions

View File

@ -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();

View File

@ -73,14 +73,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);
}