summaryrefslogtreecommitdiff
path: root/src/tests/ector/suite/ector_test_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/ector/suite/ector_test_init.c')
-rw-r--r--src/tests/ector/suite/ector_test_init.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/tests/ector/suite/ector_test_init.c b/src/tests/ector/suite/ector_test_init.c
new file mode 100644
index 0000000..5194cbd
--- /dev/null
+++ b/src/tests/ector/suite/ector_test_init.c
@@ -0,0 +1,38 @@
1/* ECTOR - EFL retained mode drawing library
2 * Copyright (C) 2014 Cedric Bail
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library;
16 * if not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifdef HAVE_CONFIG_H
20# include "config.h"
21#endif
22
23#include <Ector.h>
24
25#include "ector_suite.h"
26
27START_TEST(ector_init_simple)
28{
29 fail_if(ector_init() != 1);
30 fail_if(ector_shutdown() != 0);
31}
32END_TEST
33
34void
35ector_test_init(TCase *tc)
36{
37 tcase_add_test(tc, ector_init_simple);
38}