From 68e299c17e55409cf43f252439837ed9b1aa26c8 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 29 May 2019 09:31:54 -0400 Subject: [PATCH] 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 --- src/tests/elementary/elm_code_test_widget.c | 2 ++ src/tests/elementary/elm_test_genlist.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/tests/elementary/elm_code_test_widget.c b/src/tests/elementary/elm_code_test_widget.c index 0f7177c486..0c51630cbe 100644 --- a/src/tests/elementary/elm_code_test_widget.c +++ b/src/tests/elementary/elm_code_test_widget.c @@ -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(); diff --git a/src/tests/elementary/elm_test_genlist.c b/src/tests/elementary/elm_test_genlist.c index 2fea52e4c8..3c9c190f94 100644 --- a/src/tests/elementary/elm_test_genlist.c +++ b/src/tests/elementary/elm_test_genlist.c @@ -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); }