summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_config.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-11 10:38:21 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:17 -0700
commitccb5642eb9c122deac271da5f8b1353f46d73160 (patch)
tree9a0a93692425677f4853a6f1b8dadd6ee430c5ec /src/tests/elementary/elm_test_config.c
parent36f8a70041a8a16249a07d5b7131d57a8a6ea95b (diff)
Revert "efl_add_ref - fis to use efl_add properly with a parent."
This reverts commit 2fb5cc3ad09f6aaf82b5d1131ac5ed22ed848bd4. Most of this change where wrong as they didn't affect the destruction of the object. efl_add_ref allow for manual handling of the lifecycle of the object and make sure it is still alive during destructor. efl_add will not allow you to access an object after invalidate also efl.parent.get will always return NULL once the object is invalidated. Differential Revision: https://phab.enlightenment.org/D6062
Diffstat (limited to '')
-rw-r--r--src/tests/elementary/elm_test_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/elementary/elm_test_config.c b/src/tests/elementary/elm_test_config.c
index 2edab80..777c6c2 100644
--- a/src/tests/elementary/elm_test_config.c
+++ b/src/tests/elementary/elm_test_config.c
@@ -148,14 +148,14 @@ EFL_START_TEST (elm_config_win)
148 Eo *cfg = efl_provider_find(efl_main_loop_get(), EFL_CONFIG_INTERFACE); 148 Eo *cfg = efl_provider_find(efl_main_loop_get(), EFL_CONFIG_INTERFACE);
149 fail_if(!cfg); 149 fail_if(!cfg);
150 150
151 Eo *win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get()); 151 Eo *win = efl_add_ref(EFL_UI_WIN_CLASS, NULL);
152 Eo *cfg2 = efl_provider_find(win, EFL_CONFIG_INTERFACE); 152 Eo *cfg2 = efl_provider_find(win, EFL_CONFIG_INTERFACE);
153 fail_if(cfg != cfg2); 153 fail_if(cfg != cfg2);
154 154
155 elm_config_cache_flush_interval_set(42); 155 elm_config_cache_flush_interval_set(42);
156 fail_if(efl_config_int_get(win, "cache_flush_interval") != 42); 156 fail_if(efl_config_int_get(win, "cache_flush_interval") != 42);
157 157
158 efl_del(win); 158 efl_unref(win);
159} 159}
160EFL_END_TEST 160EFL_END_TEST
161 161