zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d3ef3d6af109fa028912ae2ec46a74a3ce2bf969

commit d3ef3d6af109fa028912ae2ec46a74a3ce2bf969
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu May 30 13:09:19 2019 -0400

    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
---
 src/tests/elementary/elm_test_check.c       | 2 ++
 src/tests/elementary/elm_test_photocam.c    | 2 ++
 src/tests/elementary/elm_test_progressbar.c | 2 ++
 src/tests/elementary/elm_test_win.c         | 2 ++
 4 files changed, 8 insertions(+)

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)
    ck_assert_str_eq(elm_object_part_text_get(check, "off"), "OffText");
 
    elm_object_style_set(check, "default");
+   DISABLE_ABORT_ON_CRITICAL_START;
    ck_assert(elm_object_part_text_get(check, "on") == NULL);
    ck_assert(elm_object_part_text_get(check, "off") == NULL);
+   DISABLE_ABORT_ON_CRITICAL_END;
 
 }
 EFL_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)
    ck_assert_int_eq(elm_photocam_file_set(photocam, buf), 
EVAS_LOAD_ERROR_NONE);
    ck_assert_str_eq(elm_photocam_file_get(photocam), buf);
 
+   DISABLE_ABORT_ON_CRITICAL_START;
    ck_assert_int_eq(elm_photocam_file_set(photocam, "non_existing.png"), 
EVAS_LOAD_ERROR_DOES_NOT_EXIST);
+   DISABLE_ABORT_ON_CRITICAL_END;
    ck_assert_str_eq(elm_photocam_file_get(photocam), "non_existing.png");
 }
 EFL_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)
    win = win_add(NULL, "progressbar", ELM_WIN_BASIC);
 
    progressbar = elm_progressbar_add(win);
+   DISABLE_ABORT_ON_CRITICAL_START;
    elm_progressbar_unit_format_set(progressbar, format);
+   DISABLE_ABORT_ON_CRITICAL_END;
    elm_progressbar_value_set(progressbar, .50);
    ck_assert(!strcmp(elm_object_part_text_get(progressbar, "elm.text.status"), 
"50 percent (50%)"));
 }
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)
    ck_assert_int_eq(elm_win_rotation_get(win), 90);
    elm_win_rotation_with_resize_set(win, 180);
    ck_assert_int_eq(elm_win_rotation_get(win), 180);
+   DISABLE_ABORT_ON_CRITICAL_START;
    ck_assert_int_eq(elm_win_rotation_get(NULL), -1);
+   DISABLE_ABORT_ON_CRITICAL_END;
 }
 EFL_END_TEST
 

-- 


Reply via email to