zmike pushed a commit to branch efl-1.22.

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

commit 79cad6220390d44875e988ce294fa02d636021a5
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Wed May 29 09:31:54 2019 -0400

    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 1ffec17647..430e2050c6 100644
--- a/src/tests/elementary/elm_test_genlist.c
+++ b/src/tests/elementary/elm_test_genlist.c
@@ -75,14 +75,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);
      }

-- 


Reply via email to