forked from enlightenment/efl
Eolian: fix test.
Constructor has to be defined in the constructors section and not as a method.
This commit is contained in:
parent
b9b5fe5744
commit
d949e9b41b
|
@ -1,7 +1,9 @@
|
||||||
class Base {
|
class Base {
|
||||||
methods {
|
constructors {
|
||||||
constructor {
|
constructor {
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
methods {
|
||||||
destructor {
|
destructor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,7 +202,7 @@ START_TEST(eolian_ctor_dtor)
|
||||||
fail_if(strcmp(impl_func, "destructor"));
|
fail_if(strcmp(impl_func, "destructor"));
|
||||||
|
|
||||||
/* Custom ctors/dtors */
|
/* Custom ctors/dtors */
|
||||||
fail_if(!eolian_class_function_find_by_name(base, "constructor", EOLIAN_METHOD));
|
fail_if(!eolian_class_function_find_by_name(base, "constructor", EOLIAN_CTOR));
|
||||||
fail_if(!eolian_class_function_find_by_name(base, "destructor", EOLIAN_METHOD));
|
fail_if(!eolian_class_function_find_by_name(base, "destructor", EOLIAN_METHOD));
|
||||||
fail_if(!eolian_class_function_find_by_name(class, "custom_constructor_1", EOLIAN_CTOR));
|
fail_if(!eolian_class_function_find_by_name(class, "custom_constructor_1", EOLIAN_CTOR));
|
||||||
fail_if(!eolian_class_function_find_by_name(class, "custom_constructor_2", EOLIAN_CTOR));
|
fail_if(!eolian_class_function_find_by_name(class, "custom_constructor_2", EOLIAN_CTOR));
|
||||||
|
|
Loading…
Reference in New Issue