git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@70138
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
#include "simple.h"
#include "comp.h"
+#include "../eunit_tests.h"
EAPI Eobj_Op COMP_BASE_ID = 0;
eobj_composite_object_attach(obj, simple);
eobj_event_callback_forwarder_add(simple, SIG_A_CHANGED, obj);
+ fail_if(eobj_composite_is(obj));
+ fail_if(!eobj_composite_is(simple));
+
eobj_unref(simple);
}
#include "class_simple.h"
+START_TEST(eobj_simple)
+{
+ eobj_init();
+ Eobj *obj = eobj_add(EOBJ_CLASS_BASE, NULL);
+
+ fail_if(obj);
+ eobj_shutdown();
+}
+END_TEST
+
START_TEST(eobj_op_errors)
{
eobj_init();
void eobj_test_general(TCase *tc)
{
tcase_add_test(tc, eobj_op_errors);
+ tcase_add_test(tc, eobj_simple);
}