summaryrefslogtreecommitdiff
path: root/src/tests/eet/eet_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/eet/eet_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/eet/eet_suite.c')
-rw-r--r--src/tests/eet/eet_suite.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tests/eet/eet_suite.c b/src/tests/eet/eet_suite.c
index a1d7840327..60cc8ce3e8 100644
--- a/src/tests/eet/eet_suite.c
+++ b/src/tests/eet/eet_suite.c
@@ -6,6 +6,7 @@
6 6
7#include "eet_suite.h" 7#include "eet_suite.h"
8#include "../efl_check.h" 8#include "../efl_check.h"
9#include <Eet.h>
9 10
10char argv0[PATH_MAX]; 11char argv0[PATH_MAX];
11 12
@@ -25,6 +26,16 @@ static const Efl_Test_Case etc[] = {
25 { NULL, NULL } 26 { NULL, NULL }
26}; 27};
27 28
29SUITE_INIT(eet)
30{
31 ck_assert_int_eq(eet_init(), 1);
32}
33
34SUITE_SHUTDOWN(eet)
35{
36 ck_assert_int_eq(eet_shutdown(), 0);
37}
38
28int 39int
29main(int argc, char *argv[]) 40main(int argc, char *argv[])
30{ 41{
@@ -40,7 +51,7 @@ main(int argc, char *argv[])
40 memcpy(argv0, argv[0], strlen(argv[0]) + 1); 51 memcpy(argv0, argv[0], strlen(argv[0]) + 1);
41 52
42 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1, 53 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
43 "Eet", etc); 54 "Eet", etc, SUITE_INIT_FN(eet), SUITE_SHUTDOWN_FN(eet));
44 55
45 return (failed_count == 0) ? EXIT_SUCCESS : EXIT_FAILURE; 56 return (failed_count == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
46} 57}