summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_config.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-29 00:42:10 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-29 13:30:55 +0900
commit2fb5cc3ad09f6aaf82b5d1131ac5ed22ed848bd4 (patch)
tree7a2c2c0371789ae4b139ebdf4a9ef60f82d324aa /src/tests/elementary/elm_test_config.c
parentcc2b7a10a8236e2b3cc4a25b4b4fda95e00884fc (diff)
efl_add_ref - fis to use efl_add properly with a parent.
fixes bc18b7e7ad1f8c5d587400b27fabab0865017011 and 168849e8a08966ecc284e28f64126a3a85965965
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 c7593bd..c7e5089 100644
--- a/src/tests/elementary/elm_test_config.c
+++ b/src/tests/elementary/elm_test_config.c
@@ -155,14 +155,14 @@ START_TEST (elm_config_win)
155 Eo *cfg = efl_provider_find(efl_main_loop_get(), EFL_CONFIG_INTERFACE); 155 Eo *cfg = efl_provider_find(efl_main_loop_get(), EFL_CONFIG_INTERFACE);
156 fail_if(!cfg); 156 fail_if(!cfg);
157 157
158 Eo *win = efl_add_ref(EFL_UI_WIN_CLASS, NULL); 158 Eo *win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get());
159 Eo *cfg2 = efl_provider_find(win, EFL_CONFIG_INTERFACE); 159 Eo *cfg2 = efl_provider_find(win, EFL_CONFIG_INTERFACE);
160 fail_if(cfg != cfg2); 160 fail_if(cfg != cfg2);
161 161
162 elm_config_cache_flush_interval_set(42); 162 elm_config_cache_flush_interval_set(42);
163 fail_if(efl_config_int_get(win, "cache_flush_interval") != 42); 163 fail_if(efl_config_int_get(win, "cache_flush_interval") != 42);
164 164
165 efl_unref(win); 165 efl_del(win);
166 elm_shutdown(); 166 elm_shutdown();
167} 167}
168END_TEST 168END_TEST