summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-30 13:09:19 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-30 13:09:19 -0400
commitd3ef3d6af109fa028912ae2ec46a74a3ce2bf969 (patch)
treedeae661f9ef818d7e66f219b6699762bc4260965
parentca5b68a6203a6947739c9e72c5bef5e6071de325 (diff)
tests/elm: explicitly denote some error/warning messages in unit tests
Summary: these blocks intentionally trigger warnings/errors, so use test macros to indicate this Depends on D8969 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8970
-rw-r--r--src/tests/elementary/elm_test_check.c2
-rw-r--r--src/tests/elementary/elm_test_photocam.c2
-rw-r--r--src/tests/elementary/elm_test_progressbar.c2
-rw-r--r--src/tests/elementary/elm_test_win.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_test_check.c b/src/tests/elementary/elm_test_check.c
index e5f8273a69..9a02e4fbf5 100644
--- a/src/tests/elementary/elm_test_check.c
+++ b/src/tests/elementary/elm_test_check.c
@@ -41,8 +41,10 @@ EFL_START_TEST(elm_check_onoff_text)
41 ck_assert_str_eq(elm_object_part_text_get(check, "off"), "OffText"); 41 ck_assert_str_eq(elm_object_part_text_get(check, "off"), "OffText");
42 42
43 elm_object_style_set(check, "default"); 43 elm_object_style_set(check, "default");
44 DISABLE_ABORT_ON_CRITICAL_START;
44 ck_assert(elm_object_part_text_get(check, "on") == NULL); 45 ck_assert(elm_object_part_text_get(check, "on") == NULL);
45 ck_assert(elm_object_part_text_get(check, "off") == NULL); 46 ck_assert(elm_object_part_text_get(check, "off") == NULL);
47 DISABLE_ABORT_ON_CRITICAL_END;
46 48
47} 49}
48EFL_END_TEST 50EFL_END_TEST
diff --git a/src/tests/elementary/elm_test_photocam.c b/src/tests/elementary/elm_test_photocam.c
index 8313fdb0d2..8de7a1530b 100644
--- a/src/tests/elementary/elm_test_photocam.c
+++ b/src/tests/elementary/elm_test_photocam.c
@@ -52,7 +52,9 @@ EFL_START_TEST(elm_photocam_file)
52 ck_assert_int_eq(elm_photocam_file_set(photocam, buf), EVAS_LOAD_ERROR_NONE); 52 ck_assert_int_eq(elm_photocam_file_set(photocam, buf), EVAS_LOAD_ERROR_NONE);
53 ck_assert_str_eq(elm_photocam_file_get(photocam), buf); 53 ck_assert_str_eq(elm_photocam_file_get(photocam), buf);
54 54
55 DISABLE_ABORT_ON_CRITICAL_START;
55 ck_assert_int_eq(elm_photocam_file_set(photocam, "non_existing.png"), EVAS_LOAD_ERROR_DOES_NOT_EXIST); 56 ck_assert_int_eq(elm_photocam_file_set(photocam, "non_existing.png"), EVAS_LOAD_ERROR_DOES_NOT_EXIST);
57 DISABLE_ABORT_ON_CRITICAL_END;
56 ck_assert_str_eq(elm_photocam_file_get(photocam), "non_existing.png"); 58 ck_assert_str_eq(elm_photocam_file_get(photocam), "non_existing.png");
57} 59}
58EFL_END_TEST 60EFL_END_TEST
diff --git a/src/tests/elementary/elm_test_progressbar.c b/src/tests/elementary/elm_test_progressbar.c
index 2ad2808de6..17abdb36af 100644
--- a/src/tests/elementary/elm_test_progressbar.c
+++ b/src/tests/elementary/elm_test_progressbar.c
@@ -36,7 +36,9 @@ EFL_START_TEST(elm_progressbar_custom_unit_check)
36 win = win_add(NULL, "progressbar", ELM_WIN_BASIC); 36 win = win_add(NULL, "progressbar", ELM_WIN_BASIC);
37 37
38 progressbar = elm_progressbar_add(win); 38 progressbar = elm_progressbar_add(win);
39 DISABLE_ABORT_ON_CRITICAL_START;
39 elm_progressbar_unit_format_set(progressbar, format); 40 elm_progressbar_unit_format_set(progressbar, format);
41 DISABLE_ABORT_ON_CRITICAL_END;
40 elm_progressbar_value_set(progressbar, .50); 42 elm_progressbar_value_set(progressbar, .50);
41 ck_assert(!strcmp(elm_object_part_text_get(progressbar, "elm.text.status"), "50 percent (50%)")); 43 ck_assert(!strcmp(elm_object_part_text_get(progressbar, "elm.text.status"), "50 percent (50%)"));
42} 44}
diff --git a/src/tests/elementary/elm_test_win.c b/src/tests/elementary/elm_test_win.c
index 9327327f6e..bf98148534 100644
--- a/src/tests/elementary/elm_test_win.c
+++ b/src/tests/elementary/elm_test_win.c
@@ -459,7 +459,9 @@ EFL_START_TEST(elm_win_test_rotation)
459 ck_assert_int_eq(elm_win_rotation_get(win), 90); 459 ck_assert_int_eq(elm_win_rotation_get(win), 90);
460 elm_win_rotation_with_resize_set(win, 180); 460 elm_win_rotation_with_resize_set(win, 180);
461 ck_assert_int_eq(elm_win_rotation_get(win), 180); 461 ck_assert_int_eq(elm_win_rotation_get(win), 180);
462 DISABLE_ABORT_ON_CRITICAL_START;
462 ck_assert_int_eq(elm_win_rotation_get(NULL), -1); 463 ck_assert_int_eq(elm_win_rotation_get(NULL), -1);
464 DISABLE_ABORT_ON_CRITICAL_END;
463} 465}
464EFL_END_TEST 466EFL_END_TEST
465 467