summaryrefslogtreecommitdiffstats
path: root/tests/helper.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-31 16:39:14 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-31 16:39:14 +0200
commit4bc1b68caf1165222b7ea4080144547d388d17eb (patch)
treef54132649202d1acfb11730d0dce9d648f5b1efa /tests/helper.c
parente6a53fa2a651ec15b5a2b7c5ed70af421660ca7a (diff)
downloadedoors-4bc1b68caf1165222b7ea4080144547d388d17eb.zip
edoors-4bc1b68caf1165222b7ea4080144547d388d17eb.tar.gz
split and complete tests
Diffstat (limited to 'tests/helper.c')
-rw-r--r--tests/helper.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/helper.c b/tests/helper.c
new file mode 100644
index 0000000..929aef7
--- /dev/null
+++ b/tests/helper.c
@@ -0,0 +1,16 @@
+
+#include "helper.h"
+
+void check_cond(Eina_Bool cond, char *msg) {
+ if(!cond) {
+ EINA_LOG_DOM_ERR(_eiotas_log_dom,"%s",msg);
+ }
+}
+
+void check_str(char *s0, char *s1, char *msg) {
+ if(strcmp(s0,s1)!=0) {
+ EINA_LOG_DOM_ERR(_eiotas_log_dom,"%s => %s != %s\n",msg,s0,s1);
+ }
+}
+
+