Eo: add autotools tests. I have plenty of errors with the unit tests on Windows
[profile/ivi/eobj.git] / src / tests / function_overrides / main.c
index 7e9d2e1..c45cfe5 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "Eo.h"
 #include "simple.h"
 #include "inherit.h"
@@ -30,7 +34,8 @@ main(int argc, char *argv[])
    eo_unref(obj);
 
    obj = eo_add(INHERIT2_CLASS, NULL);
-   eo_do(obj, inherit2_print());
+   fail_if(!eo_do(obj, inherit2_print()));
+   fail_if(!eo_do(obj, inherit2_print(), inherit2_print()));
    eo_unref(obj);
 
    obj = eo_add(SIMPLE_CLASS, NULL);