summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con/ecore_con_suite.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-03-27 13:51:13 -0400
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-05 11:10:26 +0200
commit624925fe6e9c72c639d47135d5ea70d4110ac1fe (patch)
treeb57c12a611bf3b4b492327a7fcb5722cd39dad5b /src/tests/ecore_con/ecore_con_suite.c
parent730020c7d4a87daf60cbfbb3a0a912b4f75d8cb5 (diff)
tests: move to using checked fixtures for all test suites
individual tests should not need to explicitly call init/shutdown functions in most cases, and many did not properly do this anyway see followup commit which resolves some issues with eina tests ref T6813 ref T6811 Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Diffstat (limited to 'src/tests/ecore_con/ecore_con_suite.c')
-rw-r--r--src/tests/ecore_con/ecore_con_suite.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tests/ecore_con/ecore_con_suite.c b/src/tests/ecore_con/ecore_con_suite.c
index 1ef8b84d50..7f96297672 100644
--- a/src/tests/ecore_con/ecore_con_suite.c
+++ b/src/tests/ecore_con/ecore_con_suite.c
@@ -4,6 +4,7 @@
4 4
5#include "ecore_con_suite.h" 5#include "ecore_con_suite.h"
6#include "../efl_check.h" 6#include "../efl_check.h"
7#include <Ecore_Con.h>
7 8
8static const Efl_Test_Case etc[] = { 9static const Efl_Test_Case etc[] = {
9 { "Ecore_Con", ecore_con_test_ecore_con }, 10 { "Ecore_Con", ecore_con_test_ecore_con },
@@ -13,6 +14,16 @@ static const Efl_Test_Case etc[] = {
13 { NULL, NULL } 14 { NULL, NULL }
14}; 15};
15 16
17SUITE_INIT(ecore_con)
18{
19 ck_assert_int_eq(ecore_con_init(), 1);
20}
21
22SUITE_SHUTDOWN(ecore_con)
23{
24 ck_assert_int_eq(ecore_con_shutdown(), 0);
25}
26
16int 27int
17main(int argc, char **argv) 28main(int argc, char **argv)
18{ 29{
@@ -26,7 +37,7 @@ main(int argc, char **argv)
26#endif 37#endif
27 38
28 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1, 39 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
29 "Ecore_Con", etc); 40 "Ecore_Con", etc, SUITE_INIT_FN(ecore_con), SUITE_SHUTDOWN_FN(ecore_con));
30 41
31 return (failed_count == 0) ? 0 : 255; 42 return (failed_count == 0) ? 0 : 255;
32} 43}