aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/edje/edje_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/edje/edje_suite.c
parenttests: remove duplicated eina mempool test (diff)
downloadefl-624925fe6e9c72c639d47135d5ea70d4110ac1fe.tar.gz
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 https://phab.enlightenment.org/T6813 ref https://phab.enlightenment.org/T6811 Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Diffstat (limited to 'src/tests/edje/edje_suite.c')
-rw-r--r--src/tests/edje/edje_suite.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tests/edje/edje_suite.c b/src/tests/edje/edje_suite.c
index 0ec7d5c95a..80cb84a8f6 100644
--- a/src/tests/edje/edje_suite.c
+++ b/src/tests/edje/edje_suite.c
@@ -4,12 +4,23 @@
#include "edje_suite.h"
#include "../efl_check.h"
+#include <Edje.h>
static const Efl_Test_Case etc[] = {
{ "Edje", edje_test_edje },
{ NULL, NULL }
};
+SUITE_INIT(edje)
+{
+ ck_assert_int_eq(edje_init(), 1);
+}
+
+SUITE_SHUTDOWN(edje)
+{
+ ck_assert_int_eq(edje_shutdown(), 0);
+}
+
int
main(int argc, char **argv)
{
@@ -23,7 +34,7 @@ main(int argc, char **argv)
#endif
failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
- "Edje", etc);
+ "Edje", etc, SUITE_INIT_FN(edje), SUITE_SHUTDOWN_FN(edje));
return (failed_count == 0) ? 0 : 255;
}