diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-21 23:06:11 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-21 23:06:11 +0200 |
commit | 7e6d7b9fe180f8555e2ea2caa29fa3efb51707c3 (patch) | |
tree | c7630a70da6caecdc047bc06faa5a59cfd0b57ec /tests | |
parent | 01f14a8846ffbce99c8f70ad215b7707e2af0094 (diff) | |
download | edoors-7e6d7b9fe180f8555e2ea2caa29fa3efb51707c3.zip edoors-7e6d7b9fe180f8555e2ea2caa29fa3efb51707c3.tar.gz |
enable eiotas_spin_add, eiotas_room_add and eiotas_spin_free tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/main.c | 28 |
1 files 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(); } |