summaryrefslogtreecommitdiff
path: root/src/tests/ector/suite/ector_suite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/ector/suite/ector_suite.c')
-rw-r--r--src/tests/ector/suite/ector_suite.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tests/ector/suite/ector_suite.c b/src/tests/ector/suite/ector_suite.c
index 9f04a64..d2d3d92 100644
--- a/src/tests/ector/suite/ector_suite.c
+++ b/src/tests/ector/suite/ector_suite.c
@@ -22,12 +22,23 @@
22 22
23#include "ector_suite.h" 23#include "ector_suite.h"
24#include "../efl_check.h" 24#include "../efl_check.h"
25#include <Ector.h>
25 26
26static const Efl_Test_Case etc[] = { 27static const Efl_Test_Case etc[] = {
27 { "init", ector_test_init }, 28 { "init", ector_test_init },
28 { NULL, NULL } 29 { NULL, NULL }
29}; 30};
30 31
32SUITE_INIT(ector)
33{
34 ck_assert_int_eq(ector_init(), 1);
35}
36
37SUITE_SHUTDOWN(ector)
38{
39 ck_assert_int_eq(ector_shutdown(), 0);
40}
41
31int 42int
32main(int argc, char *argv[]) 43main(int argc, char *argv[])
33{ 44{
@@ -41,7 +52,7 @@ main(int argc, char *argv[])
41#endif 52#endif
42 53
43 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1, 54 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
44 "Ector", etc); 55 "Ector", etc, SUITE_INIT_FN(ector), SUITE_SHUTDOWN_FN(ector));
45 56
46 return (failed_count == 0) ? EXIT_SUCCESS : EXIT_FAILURE; 57 return (failed_count == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
47} 58}