EINA_INLIST_FOREACH(obj->callbacks, cb)
{
- if (!cb->delete_me && (cb->event == desc))
+ if (!cb->delete_me && (cb->event == desc))
{
/* Abort callback calling if the func says so. */
if (!cb->func((void *) cb->func_data, obj, desc,
}
END_TEST
-START_TEST(eobj_xrefs)
+START_TEST(eobj_refs)
{
eobj_init();
Eobj *obj = eobj_add(SIMPLE_CLASS, NULL);
eobj_unref(obj2);
eobj_unref(obj3);
+ /* Just check it doesn't seg atm. */
+ obj = eobj_add(SIMPLE_CLASS, NULL);
+ eobj_ref(obj);
+ eobj_del(obj);
+ eobj_del(obj);
+
eobj_shutdown();
}
END_TEST
eobj_weak_ref_free(wref);
+ obj = eobj_add(SIMPLE_CLASS, NULL);
+
+ wref = eobj_weak_ref_new(obj);
+ eobj_weak_ref_free(wref);
+
+ eobj_unref(obj);
+
eobj_shutdown();
}
tcase_add_test(tc, eobj_op_errors);
tcase_add_test(tc, eobj_simple);
tcase_add_test(tc, eobj_weak_reference);
- tcase_add_test(tc, eobj_xrefs);
+ tcase_add_test(tc, eobj_refs);
}