forked from enlightenment/efl
tests/eo: Do not test for an integer when you get a pointer.
It works but the compiler is right when complaining about it. fail_unless() expects and integer but we passed in a pointer. Negate the pointer and use fail_if() like we do in all other places.
This commit is contained in:
parent
3b59913b9a
commit
e42db35528
|
@ -43,10 +43,10 @@ START_TEST(eo_destructor_unref)
|
||||||
};
|
};
|
||||||
|
|
||||||
klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
|
klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
|
||||||
fail_unless(klass);
|
fail_if(!klass);
|
||||||
|
|
||||||
Eo *obj = eo_add(klass, NULL);
|
Eo *obj = eo_add(klass, NULL);
|
||||||
fail_unless(obj);
|
fail_if(!obj);
|
||||||
|
|
||||||
TEST_EO_ERROR("_eo_unref", "Object %p deletion already triggered. You wrongly call eo_unref() within a destructor.");
|
TEST_EO_ERROR("_eo_unref", "Object %p deletion already triggered. You wrongly call eo_unref() within a destructor.");
|
||||||
eo_unref(obj);
|
eo_unref(obj);
|
||||||
|
|
Loading…
Reference in New Issue