eo: constructor tests do not use eo_add_custom(..)
authorJérémy Zurcher <jeremy@asynk.ch>
Thu, 3 Jul 2014 08:41:53 +0000 (10:41 +0200)
committerJérémy Zurcher <jeremy@asynk.ch>
Thu, 3 Jul 2014 08:44:15 +0000 (10:44 +0200)
commit46a78e8c9d46225f3cd3d6b3c6eca3ab7361f361
tree14a1003566e13ad0706877fc928d77891b01094b
parent368058cdc71e6f8f042f6326d01e0b3327c6e744
eo: constructor tests do not use eo_add_custom(..)

as stated in f92e5d50, instead of using eo_add_custom() thus a custom
constructor and maybe overriding the default constructor to block it,

   - use the default constructor to build the object
   - add calls to eo_add(), to initialize the object
     eo_add(class, parent, val_a_set(1), val_b_set(2), ... );
   - override eo_finalize to validate the object and if needed,
     use eo_error_set(obj) to abort object construction
src/tests/eo/constructors/constructors_main.c
src/tests/eo/constructors/constructors_simple.c
src/tests/eo/constructors/constructors_simple.h