forked from enlightenment/efl
Eo: Test getting data from class with no data.
SVN revision: 70816
This commit is contained in:
parent
aeca850bb0
commit
59a132264f
|
@ -23,7 +23,8 @@ START_TEST(eo_data_fetch)
|
|||
{
|
||||
eo_init();
|
||||
|
||||
static const Eo_Class_Description class_desc = {
|
||||
/* Usually should be const, not const only for the test... */
|
||||
static Eo_Class_Description class_desc = {
|
||||
"Simple2",
|
||||
EO_CLASS_TYPE_REGULAR,
|
||||
EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
|
||||
|
@ -45,6 +46,15 @@ START_TEST(eo_data_fetch)
|
|||
#endif
|
||||
eo_unref(obj);
|
||||
|
||||
class_desc.data_size = 0;
|
||||
klass = eo_class_new(&class_desc, EO_BASE_CLASS, NULL);
|
||||
fail_if(!klass);
|
||||
|
||||
obj = eo_add(klass, NULL);
|
||||
fail_if(!obj);
|
||||
fail_if(eo_data_get(obj, klass));
|
||||
eo_unref(obj);
|
||||
|
||||
eo_shutdown();
|
||||
}
|
||||
END_TEST
|
||||
|
|
Loading…
Reference in New Issue