summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:31:54 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commit68e299c17e55409cf43f252439837ed9b1aa26c8 (patch)
treead5616aa27028659efb6af30b4b3c623be17b301
parent3a88a71a26f3bd151b2b8b8ba84dd7e3b48b8906 (diff)
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
-rw-r--r--src/tests/elementary/elm_code_test_widget.c2
-rw-r--r--src/tests/elementary/elm_test_genlist.c4
2 files changed, 6 insertions, 0 deletions
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)
50 elm_init(1, args); 50 elm_init(1, args);
51 51
52 win = win_add(NULL, "entry", ELM_WIN_BASIC); 52 win = win_add(NULL, "entry", ELM_WIN_BASIC);
53 DISABLE_ABORT_ON_CRITICAL_START;
53 widget = elm_code_widget_add(win, NULL); 54 widget = elm_code_widget_add(win, NULL);
55 DISABLE_ABORT_ON_CRITICAL_END;
54 ck_assert(!widget); 56 ck_assert(!widget);
55 57
56 elm_shutdown(); 58 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)
73 { 73 {
74 it = elm_genlist_nth_item_get(genlist, i); 74 it = elm_genlist_nth_item_get(genlist, i);
75 if (i == 11) 75 if (i == 11)
76 DISABLE_ABORT_ON_CRITICAL_START;
76 // item #11 do not exists 77 // item #11 do not exists
77 ck_assert_int_eq(elm_genlist_item_index_get(it), -1); 78 ck_assert_int_eq(elm_genlist_item_index_get(it), -1);
79 DISABLE_ABORT_ON_CRITICAL_END;
78 else 80 else
79 ck_assert_int_eq(elm_genlist_item_index_get(it), i + 1); 81 ck_assert_int_eq(elm_genlist_item_index_get(it), i + 1);
80 82
81 if ((i == 0) || (i == 11)) 83 if ((i == 0) || (i == 11))
84 DISABLE_ABORT_ON_CRITICAL_START;
82 // test first and item #11 (that do not exists) 85 // test first and item #11 (that do not exists)
83 ck_assert_ptr_eq(elm_object_item_data_get(it), NULL); 86 ck_assert_ptr_eq(elm_object_item_data_get(it), NULL);
87 DISABLE_ABORT_ON_CRITICAL_END;
84 else 88 else
85 ck_assert_ptr_eq(elm_object_item_data_get(it), (void*)(uintptr_t)i); 89 ck_assert_ptr_eq(elm_object_item_data_get(it), (void*)(uintptr_t)i);
86 } 90 }