summaryrefslogtreecommitdiffstats
path: root/tests/spin.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-10 11:42:13 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-10 11:42:13 +0200
commit783b3154cd7b4dbc3fea453dac5f7af09a011ef4 (patch)
tree6f53cf6ef2b7dd9553dd51f5cd3bb71a3beb727a /tests/spin.c
parentb99a632a158519295b8ccaa0afacdb60f2a1702e (diff)
downloadedoors-783b3154cd7b4dbc3fea453dac5f7af09a011ef4.zip
edoors-783b3154cd7b4dbc3fea453dac5f7af09a011ef4.tar.gz
rename Eiotas->Edoors
Diffstat (limited to 'tests/spin.c')
-rw-r--r--tests/spin.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/spin.c b/tests/spin.c
index 5f80a21..c3f5ba9 100644
--- a/tests/spin.c
+++ b/tests/spin.c
@@ -4,43 +4,43 @@
void test_spin()
{
int i;
- Eiotas_Particle *p0, *p1, *p2;
+ Edoors_Particle *p0, *p1, *p2;
/* add spin */
- Eiotas_Spin *dom0 = eiotas_spin_add("dom0",10);
- eiotas_iota_show((Eiotas_Iota*)dom0);
+ Edoors_Spin *dom0 = edoors_spin_add("dom0",10);
+ edoors_iota_show((Edoors_Iota*)dom0);
/* particle require/release */
- p0 = eiotas_spin_require_particle(dom0);
- p1 = eiotas_spin_require_particle(dom0);
+ p0 = edoors_spin_require_particle(dom0);
+ p1 = edoors_spin_require_particle(dom0);
- eiotas_spin_release_particle(dom0,p0);
- eiotas_spin_release_particle(dom0,p1);
- p2 = eiotas_spin_require_particle(dom0);
+ edoors_spin_release_particle(dom0,p0);
+ edoors_spin_release_particle(dom0,p1);
+ p2 = edoors_spin_require_particle(dom0);
check_cond((p2==p1),"Particle require fail\n");
- eiotas_release_particle(dom0,p2);
+ edoors_release_particle(dom0,p2);
/* particle send(sys) */
- p0 = eiotas_spin_require_particle(dom0);
- p1 = eiotas_spin_require_particle(dom0);
- eiotas_spin_send_particle(dom0,p0,EINA_FALSE);
- eiotas_spin_send_particle(dom0,p1,EINA_TRUE);
+ p0 = edoors_spin_require_particle(dom0);
+ p1 = edoors_spin_require_particle(dom0);
+ edoors_spin_send_particle(dom0,p0,EINA_FALSE);
+ edoors_spin_send_particle(dom0,p1,EINA_TRUE);
/* add rooms */
- Eiotas_Room *room = &dom0->room;
+ Edoors_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);
+ Edoors_Room *tmp = edoors_room_add(name,room);
if(tmp!=NULL) {
room = tmp;
- eiotas_iota_show((Eiotas_Iota*)room); // MACROS
+ edoors_iota_show((Edoors_Iota*)room); // MACROS
}
}
- room = eiotas_room_add("room0",&dom0->room);
+ room = edoors_room_add("room0",&dom0->room);
check_cond(room==NULL,"room0 should already exists");
- eiotas_spin_free(dom0);
+ edoors_spin_free(dom0);
}