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
This commit is contained in:
parent
c8fe282190
commit
51cf9842ec
|
@ -6,9 +6,6 @@
|
||||||
#include <Elementary.h>
|
#include <Elementary.h>
|
||||||
#include "elm_suite.h"
|
#include "elm_suite.h"
|
||||||
|
|
||||||
static int prev_abort;
|
|
||||||
static int prev_abort_level;
|
|
||||||
|
|
||||||
EFL_START_TEST(elm_naviframe_test_legacy_type_check)
|
EFL_START_TEST(elm_naviframe_test_legacy_type_check)
|
||||||
{
|
{
|
||||||
Evas_Object *win, *naviframe;
|
Evas_Object *win, *naviframe;
|
||||||
|
@ -84,10 +81,7 @@ EFL_START_TEST(elm_naviframe_test_content_preserve_on_pop)
|
||||||
|
|
||||||
win = win_add(NULL, "naviframe", ELM_WIN_BASIC);
|
win = win_add(NULL, "naviframe", ELM_WIN_BASIC);
|
||||||
|
|
||||||
prev_abort = eina_log_abort_on_critical_get();
|
fail_on_errors_setup();
|
||||||
prev_abort_level = eina_log_abort_on_critical_level_get();
|
|
||||||
eina_log_abort_on_critical_set(1);
|
|
||||||
eina_log_abort_on_critical_level_set(1);
|
|
||||||
|
|
||||||
naviframe = elm_naviframe_add(win);
|
naviframe = elm_naviframe_add(win);
|
||||||
elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_TRUE);
|
elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_TRUE);
|
||||||
|
@ -115,8 +109,7 @@ EFL_START_TEST(elm_naviframe_test_content_preserve_on_pop)
|
||||||
elm_object_signal_emit(button, "elm,action,click", "elm");
|
elm_object_signal_emit(button, "elm,action,click", "elm");
|
||||||
|
|
||||||
ecore_main_loop_begin();
|
ecore_main_loop_begin();
|
||||||
eina_log_abort_on_critical_set(prev_abort);
|
fail_on_errors_teardown();
|
||||||
eina_log_abort_on_critical_level_set(prev_abort_level);
|
|
||||||
}
|
}
|
||||||
EFL_END_TEST
|
EFL_END_TEST
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue