AC_DEFINE([HAVE_EIO], [1], [Have eio library])
#### End of Eio
-# Eo Id
-if test "x${want_eo_id}" = "xyes" ; then
- AC_DEFINE([HAVE_EO_ID], [1], [Have eo id])
-fi
-
-
#### Efreet
EFL_LIB_START([Efreet])
#### Info
-EFL_ADD_FEATURE([EO], [eo-id], [${want_eo_id}])
-
case $host_cpu in
i*86|x86_64|amd64)
EFL_ADD_FEATURE([cpu], [mmx], [${build_cpu_mmx}])
echo "some functionality as useless, leading to visible application bugs."
echo "_____________________________________________________________________"
fi
- if test "x${want_eo_id}" = "xno"; then
- echo "_____________________________________________________________________"
- echo "Eo's ID abstraction interface is a major safety system that"
- echo "protects code from crashing or misbehaving in many cases. It does"
- echo "come at a slight cost, but the safety and protection is worth it."
- echo "Also by disabling this, you may also introduce security holes in"
- echo "EFL as well as cause all sorts of previously non-existant crashes."
- echo "Seriously reconsider disabling EO ID."
- echo "_____________________________________________________________________"
- fi
if test "x${want_evas_cserve2}" = "xno"; then
echo "_____________________________________________________________________"
echo "Evas Cserve is built and on by default and no testing is done"
EFL_START_TEST(eo_pointers_indirection)
{
-#ifdef HAVE_EO_ID
-
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
/* Just be sure that we trigger an already freed error */
efl_unref(objs[0]);
free(objs);
-
-#endif
}
EFL_END_TEST
}
EFL_END_TEST
-#ifdef HAVE_EO_ID
static Eina_Bool intercepted = EINA_FALSE;
static void
{
efl_reuse(obj);
}
-#endif
EFL_START_TEST(efl_del_intercept)
{
-#ifdef HAVE_EO_ID
static const Efl_Class_Description class_desc = {
EO_VERSION,
fail_if(!obj);
ck_assert_int_eq(efl_ref_count(obj), 1);
efl_parent_set(obj, parent);
- ck_assert_int_eq(efl_ref_count(obj), 1);
+ ck_assert_int_eq(efl_ref_count(obj), 2);
efl_del_intercept_set(obj, _del_intercept_reuse);
efl_del_intercept_set(obj, NULL);
/* This essentially checks it get unsunk */
- ck_assert_int_eq(efl_ref_count(obj), 1);
+ ck_assert_int_eq(efl_ref_count(obj), 2);
efl_parent_set(obj, parent);
- ck_assert_int_eq(efl_ref_count(obj), 1);
+ ck_assert_int_eq(efl_ref_count(obj), 2);
efl_unref(obj);
-#endif
}
EFL_END_TEST