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)
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)
353 t = _create_transition(); 353 t = _create_transition();
354 efl_wref_add(t, &t); 354 efl_wref_add(t, &t);
355 t1 = _create_transition(); 355 t1 = _create_transition();
356 efl_wref_add(t1, &t1);
357 356
358 efl_ui_spotlight_manager_set(container, t); 357 efl_ui_spotlight_manager_set(container, t);
359 efl_ui_spotlight_manager_set(container, t1); 358 efl_ui_spotlight_manager_set(container, t1);
360 ck_assert_ptr_eq(t, NULL); 359 ck_assert_ptr_eq(t, NULL);
360 ck_assert_ptr_ne(t1, NULL);
361} 361}
362EFL_END_TEST 362EFL_END_TEST
363 363
@@ -426,6 +426,7 @@ EFL_START_TEST (efl_ui_smart_indicator_calls)
426 Efl_Ui_Spotlight_Manager*i = _create_indicator(); 426 Efl_Ui_Spotlight_Manager*i = _create_indicator();
427 efl_ui_spotlight_indicator_set(container, i); 427 efl_ui_spotlight_indicator_set(container, i);
428 _verify_indicator_calls(); 428 _verify_indicator_calls();
429 ck_assert_ptr_ne(i, NULL);
429} 430}
430EFL_END_TEST 431EFL_END_TEST
431 432
@@ -438,6 +439,8 @@ EFL_START_TEST (efl_ui_smart_indicator_transition_calls)
438 efl_ui_spotlight_indicator_set(container, i); 439 efl_ui_spotlight_indicator_set(container, i);
439 efl_ui_spotlight_manager_set(container, t); 440 efl_ui_spotlight_manager_set(container, t);
440 _verify_indicator_calls(); 441 _verify_indicator_calls();
442 ck_assert_ptr_ne(i, NULL);
443 ck_assert_ptr_ne(t, NULL);
441} 444}
442EFL_END_TEST 445EFL_END_TEST
443 446