summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_naviframe.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-10 13:57:28 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-07-10 13:57:28 -0400
commit51cf9842ecfe20caf8f6417037433eeb43dbd351 (patch)
treeda003f55960afd6e31a1efd9a7af148e0e1c74e8 /src/tests/elementary/elm_test_naviframe.c
parentc8fe282190b85b5afe13737cc2448752a219e65b (diff)
tests/elm: use helper functions for managing naviframe unit test abort-on-error
Summary: also bump up to abort on warnings Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9251
Diffstat (limited to 'src/tests/elementary/elm_test_naviframe.c')
-rw-r--r--src/tests/elementary/elm_test_naviframe.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/tests/elementary/elm_test_naviframe.c b/src/tests/elementary/elm_test_naviframe.c
index 159169b..336da14 100644
--- a/src/tests/elementary/elm_test_naviframe.c
+++ b/src/tests/elementary/elm_test_naviframe.c
@@ -6,9 +6,6 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9static int prev_abort;
10static int prev_abort_level;
11
12EFL_START_TEST(elm_naviframe_test_legacy_type_check) 9EFL_START_TEST(elm_naviframe_test_legacy_type_check)
13{ 10{
14 Evas_Object *win, *naviframe; 11 Evas_Object *win, *naviframe;
@@ -84,10 +81,7 @@ EFL_START_TEST(elm_naviframe_test_content_preserve_on_pop)
84 81
85 win = win_add(NULL, "naviframe", ELM_WIN_BASIC); 82 win = win_add(NULL, "naviframe", ELM_WIN_BASIC);
86 83
87 prev_abort = eina_log_abort_on_critical_get(); 84 fail_on_errors_setup();
88 prev_abort_level = eina_log_abort_on_critical_level_get();
89 eina_log_abort_on_critical_set(1);
90 eina_log_abort_on_critical_level_set(1);
91 85
92 naviframe = elm_naviframe_add(win); 86 naviframe = elm_naviframe_add(win);
93 elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_TRUE); 87 elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_TRUE);
@@ -115,8 +109,7 @@ EFL_START_TEST(elm_naviframe_test_content_preserve_on_pop)
115 elm_object_signal_emit(button, "elm,action,click", "elm"); 109 elm_object_signal_emit(button, "elm,action,click", "elm");
116 110
117 ecore_main_loop_begin(); 111 ecore_main_loop_begin();
118 eina_log_abort_on_critical_set(prev_abort); 112 fail_on_errors_teardown();
119 eina_log_abort_on_critical_level_set(prev_abort_level);
120} 113}
121EFL_END_TEST 114EFL_END_TEST
122 115