summaryrefslogtreecommitdiff
path: root/src/tests/eio
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/eio
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/eio')
-rw-r--r--src/tests/eio/eio_suite.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tests/eio/eio_suite.c b/src/tests/eio/eio_suite.c
index b5b63d1ff2..810bef70ed 100644
--- a/src/tests/eio/eio_suite.c
+++ b/src/tests/eio/eio_suite.c
@@ -6,6 +6,7 @@
6 6
7#include "eio_suite.h" 7#include "eio_suite.h"
8#include "../efl_check.h" 8#include "../efl_check.h"
9#include <Eio.h>
9 10
10static const Efl_Test_Case etc[] = { 11static const Efl_Test_Case etc[] = {
11 {"Eio_Monitor", eio_test_monitor}, 12 {"Eio_Monitor", eio_test_monitor},
@@ -23,6 +24,17 @@ static const Efl_Test_Case etc[] = {
23 {NULL, NULL} 24 {NULL, NULL}
24}; 25};
25 26
27SUITE_INIT(eio)
28{
29 //T6813
30 //ck_assert_int_eq(eio_init(), 1);
31}
32
33SUITE_SHUTDOWN(eio)
34{
35 //ck_assert_int_eq(eio_shutdown(), 0);
36}
37
26int 38int
27main(int argc, char **argv) 39main(int argc, char **argv)
28{ 40{
@@ -38,7 +50,7 @@ main(int argc, char **argv)
38 eina_init(); 50 eina_init();
39 51
40 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1, 52 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
41 "Eio", etc); 53 "Eio", etc, SUITE_INIT_FN(eio), SUITE_SHUTDOWN_FN(eio));
42 54
43 eina_shutdown(); 55 eina_shutdown();
44 56