diff options
author | tasn <tasn> | 2012-04-12 11:20:26 +0000 |
---|---|---|
committer | tasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2012-04-12 11:20:26 +0000 |
commit | fc19abe551571a00802323020bc81f248743f5ed (patch) | |
tree | 7a56feb5e86f671a1ae57110dfa7aca63a4b8e27 /examples/composite_objects | |
parent | da6e0d11bcce80035f4780bf63b706bf69870443 (diff) | |
download | eobj-fc19abe551571a00802323020bc81f248743f5ed.tar.gz eobj-fc19abe551571a00802323020bc81f248743f5ed.tar.bz2 eobj-fc19abe551571a00802323020bc81f248743f5ed.zip |
Eobj: Improved tests a bit.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@70137 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
Diffstat (limited to 'examples/composite_objects')
-rw-r--r-- | examples/composite_objects/main.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/examples/composite_objects/main.c b/examples/composite_objects/main.c index ce61260..531bfe5 100644 --- a/examples/composite_objects/main.c +++ b/examples/composite_objects/main.c @@ -2,6 +2,8 @@ #include "simple.h" #include "comp.h" +#include "../eunit_tests.h" + static int cb_called = EINA_FALSE; static Eina_Bool @@ -29,18 +31,11 @@ main(int argc, char *argv[]) int a; eobj_do(obj, SIMPLE_A_SET(1)); - if (!cb_called) - { - printf("Error! %d\n", __LINE__); - return 1; - } + fail_if(!cb_called); eobj_do(obj, SIMPLE_A_GET(&a)); - if (a != 1) - { - printf("Error! %d\n", __LINE__); - return 1; - } + fail_if(a != 1); + eobj_unref(obj); eobj_shutdown(); |