forked from enlightenment/efl
eolian: fix tests
This commit is contained in:
parent
0e873a260d
commit
7e95079f0f
|
@ -25,6 +25,18 @@ _object_impl_b_set(Eo *obj, Object_Impl_Data *pd, Eina_List *value)
|
|||
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_object_impl_constructor_1(Eo *obj, Object_Impl_Data *pd, int a, char b)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_object_impl_constructor_2(Eo *obj, Object_Impl_Data *pd)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
EOLIAN static char *
|
||||
_object_impl_foo1(Eo *obj, Object_Impl_Data *pd, int a, char *b, double *c)
|
||||
{
|
||||
|
@ -37,22 +49,9 @@ _object_impl_foo2(const Eo *obj, Object_Impl_Data *pd, int a, const char *b)
|
|||
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_object_impl_constructor_1(Eo *obj, Object_Impl_Data *pd, int a, char b)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_object_impl_constructor_2(Eo *obj, Object_Impl_Data *pd)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_object_impl_base_constructor(Eo *obj, Object_Impl_Data *pd)
|
||||
{
|
||||
eo_do_super(obj, OBJECT_IMPL_CLASS, base_constructor());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -237,10 +237,13 @@ START_TEST(eolian_ctor_dtor)
|
|||
eina_iterator_free(iter);
|
||||
|
||||
/* Custom ctors/dtors */
|
||||
fail_if(!eolian_class_function_get_by_name(base, "constructor", EOLIAN_CTOR));
|
||||
fail_if(!(impl_func = eolian_class_function_get_by_name(base, "constructor", EOLIAN_METHOD)));
|
||||
fail_if(!eolian_function_is_constructing(impl_func));
|
||||
fail_if(!eolian_class_function_get_by_name(base, "destructor", EOLIAN_METHOD));
|
||||
fail_if(!eolian_class_function_get_by_name(class, "custom_constructor_1", EOLIAN_CTOR));
|
||||
fail_if(!eolian_class_function_get_by_name(class, "custom_constructor_2", EOLIAN_CTOR));
|
||||
fail_if(!(impl_func = eolian_class_function_get_by_name(class, "custom_constructor_1", EOLIAN_METHOD)));
|
||||
fail_if(!eolian_function_is_constructing(impl_func));
|
||||
fail_if(!(impl_func = eolian_class_function_get_by_name(class, "custom_constructor_2", EOLIAN_METHOD)));
|
||||
fail_if(!eolian_function_is_constructing(impl_func));
|
||||
|
||||
eolian_shutdown();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue