From 7e6d7b9fe180f8555e2ea2caa29fa3efb51707c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 21 May 2012 23:06:11 +0200 Subject: enable eiotas_spin_add, eiotas_room_add and eiotas_spin_free tests --- tests/main.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/main.c b/tests/main.c index c4731e5..35a1e78 100644 --- a/tests/main.c +++ b/tests/main.c @@ -45,19 +45,19 @@ int main(int argc, char **argv) EINA_LOG_DOM_DBG(_eiotas_log_dom,"Eiotas version %d.%d.%d",eiotas_version->major,eiotas_version->minor,eiotas_version->micro); Eiotas_Spin *dom0 = eiotas_spin_add("dom0",10); - /* eiotas_iota_show((Eiotas_Iota*)dom0); */ - - /* Eiotas_Room *room = &dom0->room; */ - /* char name[8]; */ - /* for(i=0; i<5; i++) { */ - /* sprintf(name,"room%d",i); */ - /* Eiotas_Room *tmp = eiotas_room_add(name,room); */ - /* if(tmp!=NULL) { */ - /* room = tmp; */ - /* eiotas_iota_show((Eiotas_Iota*)room); // MACROS */ - /* } */ - /* } */ - /* room = eiotas_room_add("room0",&dom0->room); */ + eiotas_iota_show((Eiotas_Iota*)dom0); + + Eiotas_Room *room = &dom0->room; + char name[8]; + for(i=0; i<5; i++) { + sprintf(name,"room%d",i); + Eiotas_Room *tmp = eiotas_room_add(name,room); + if(tmp!=NULL) { + room = tmp; + eiotas_iota_show((Eiotas_Iota*)room); // MACROS + } + } + room = eiotas_room_add("room0",&dom0->room); /* Input *input = input_create("hello world"); */ /* input_show(input); */ @@ -80,7 +80,7 @@ int main(int argc, char **argv) /* eiotas_spin_send_particle(din0->iota.spin,p2,EINA_FALSE); */ /* eiotas_spin_send_particle(din0->iota.spin,p3,EINA_TRUE); */ - /* eiotas_spin_free(dom0); */ + eiotas_spin_free(dom0); return eiotas_shutdown(); } -- cgit v1.1-2-g2b99