summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-29 17:11:54 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-29 17:11:54 +0200
commitf14def04d0a38896d1321758604da6db2bdc2c49 (patch)
tree4b0cc0d068505be722eb9cbfa8b290fd14f12dab
parent9aee0986af098e355eec2c9d87ac4e3fc3fdcb42 (diff)
downloadedoors-f14def04d0a38896d1321758604da6db2bdc2c49.zip
edoors-f14def04d0a38896d1321758604da6db2bdc2c49.tar.gz
tests/main.c: eiotas_init returns 0 on failre
-rw-r--r--tests/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/main.c b/tests/main.c
index f5ddddf..6de02a1 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -45,7 +45,7 @@ int main(int argc, char **argv)
int i;
Eiotas_Particle *p0, *p1, *p2, *p3, *p4, *p5, *p6, *p7, *p8, *p9, *p10;
- if(eiotas_init()>0) {
+ if(eiotas_init()==0) {
return EXIT_FAILURE;
}
eina_log_domain_level_set("eiotas",EINA_LOG_LEVEL_DBG);
@@ -116,6 +116,5 @@ int main(int argc, char **argv)
eiotas_spin_free(dom0);
-
return eiotas_shutdown();
}