summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-11 10:58:56 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-11 11:22:11 +0900
commite2f8ba7ad9d71d7eb6638e92f9c79e9dcb8e9474 (patch)
tree90e8fe0feacc57755e0d4181860c9414dde685a5 /src/tests/eo/suite
parent521e2ab83ce0949de8101602d3596f30b7650bcb (diff)
eo: Check refs in efl_data_scope_safe_get
This makes sure the object is actually still alive and kicking before returning any data. Otherwise the "safe" word is a bit of an abuse... Ref T5869 @fix
Diffstat (limited to 'src/tests/eo/suite')
-rw-r--r--src/tests/eo/suite/eo_test_general.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index 4ac8f22c54..9a26ffea42 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -337,6 +337,7 @@ START_TEST(efl_data_safe_fetch)
337 fail_if(efl_data_scope_safe_get(obj, SIMPLE2_CLASS) != NULL); 337 fail_if(efl_data_scope_safe_get(obj, SIMPLE2_CLASS) != NULL);
338 fail_if(efl_data_scope_safe_get(NULL, EFL_OBJECT_CLASS) != NULL); 338 fail_if(efl_data_scope_safe_get(NULL, EFL_OBJECT_CLASS) != NULL);
339 efl_unref(obj); 339 efl_unref(obj);
340 fail_if(efl_data_scope_safe_get(obj, SIMPLE3_CLASS) != NULL);
340 341
341 efl_object_shutdown(); 342 efl_object_shutdown();
342} 343}