summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-09-27 15:07:37 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-27 17:12:17 +0200
commit97846281b5cc8c77e243e2547ac14ad155961186 (patch)
treea56c53fea66a66aa2ce772b4f76f041cb0f2c846
parent18ea5fd118dd0f1c6503eb3e57fb7bd0184c3572 (diff)
downloadefl-97846281b5cc8c77e243e2547ac14ad155961186.tar.gz
efl_ui_suite: Some pointers were being delete.
`efl_ui_smart_transition_lifetime` test causes segfault when compile with `clang`. Fixes half of T8277 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10221
-rw-r--r--src/tests/elementary/efl_ui_test_spotlight.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/elementary/efl_ui_test_spotlight.c b/src/tests/elementary/efl_ui_test_spotlight.c
index 9749258273..c093efb46b 100644
--- a/src/tests/elementary/efl_ui_test_spotlight.c
+++ b/src/tests/elementary/efl_ui_test_spotlight.c
@@ -353,11 +353,11 @@ EFL_START_TEST (efl_ui_smart_transition_lifetime)
t = _create_transition();
efl_wref_add(t, &t);
t1 = _create_transition();
- efl_wref_add(t1, &t1);
efl_ui_spotlight_manager_set(container, t);
efl_ui_spotlight_manager_set(container, t1);
ck_assert_ptr_eq(t, NULL);
+ ck_assert_ptr_ne(t1, NULL);
}
EFL_END_TEST
@@ -426,6 +426,7 @@ EFL_START_TEST (efl_ui_smart_indicator_calls)
Efl_Ui_Spotlight_Manager*i = _create_indicator();
efl_ui_spotlight_indicator_set(container, i);
_verify_indicator_calls();
+ ck_assert_ptr_ne(i, NULL);
}
EFL_END_TEST
@@ -438,6 +439,8 @@ EFL_START_TEST (efl_ui_smart_indicator_transition_calls)
efl_ui_spotlight_indicator_set(container, i);
efl_ui_spotlight_manager_set(container, t);
_verify_indicator_calls();
+ ck_assert_ptr_ne(i, NULL);
+ ck_assert_ptr_ne(t, NULL);
}
EFL_END_TEST