summaryrefslogtreecommitdiffstats
path: root/tests/helper.c
diff options
context:
space:
mode:
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);
+ }
+}
+
+