summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-03-27 13:42:38 -0400
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-05 11:10:26 +0200
commit730020c7d4a87daf60cbfbb3a0a912b4f75d8cb5 (patch)
tree327062f67fa5fc359c9a3b891cef977d638f0cbe
parente9eb96e097cbdb048a4d3896a6bbabcb7e4684db (diff)
tests: remove duplicated eina mempool test
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
-rw-r--r--src/tests/eina/eina_test_mempool.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/tests/eina/eina_test_mempool.c b/src/tests/eina/eina_test_mempool.c
index 426b5f6..9fa9c94 100644
--- a/src/tests/eina/eina_test_mempool.c
+++ b/src/tests/eina/eina_test_mempool.c
@@ -24,37 +24,6 @@
24 24
25#include "eina_suite.h" 25#include "eina_suite.h"
26 26
27static Eina_Array *_modules;
28
29static void
30_mempool_init(void)
31{
32 eina_init();
33 /* force modules to be loaded in case they are not installed */
34 _modules = eina_module_list_get(NULL,
35 PACKAGE_BUILD_DIR "/src/modules/eina",
36 EINA_TRUE,
37 NULL,
38 NULL);
39 eina_module_list_load(_modules);
40}
41
42static void
43_mempool_shutdown(void)
44{
45 unsigned int i;
46 Eina_Array_Iterator it;
47 Eina_Module *module;
48 eina_module_list_free(_modules);
49 if (_modules)
50 {
51 EINA_ARRAY_ITER_NEXT(_modules, i, module, it)
52 free(module);
53 eina_array_free(_modules);
54 }
55 eina_shutdown();
56}
57
58static void 27static void
59_eina_mempool_test(Eina_Mempool *mp, 28_eina_mempool_test(Eina_Mempool *mp,
60 Eina_Bool with_realloc, Eina_Bool with_gc, Eina_Bool accurate_from) 29 Eina_Bool with_realloc, Eina_Bool with_gc, Eina_Bool accurate_from)
@@ -102,12 +71,8 @@ EFL_START_TEST(eina_mempool_chained_mempool)
102{ 71{
103 Eina_Mempool *mp; 72 Eina_Mempool *mp;
104 73
105 _mempool_init();
106
107 mp = eina_mempool_add("chained_mempool", "test", NULL, sizeof (int), 256); 74 mp = eina_mempool_add("chained_mempool", "test", NULL, sizeof (int), 256);
108 _eina_mempool_test(mp, EINA_FALSE, EINA_FALSE, EINA_TRUE); 75 _eina_mempool_test(mp, EINA_FALSE, EINA_FALSE, EINA_TRUE);
109
110 _mempool_shutdown();
111} 76}
112EFL_END_TEST 77EFL_END_TEST
113#endif 78#endif
@@ -117,12 +82,8 @@ EFL_START_TEST(eina_mempool_pass_through)
117{ 82{
118 Eina_Mempool *mp; 83 Eina_Mempool *mp;
119 84
120 _mempool_init();
121
122 mp = eina_mempool_add("pass_through", "test", NULL, sizeof (int), 8, 0); 85 mp = eina_mempool_add("pass_through", "test", NULL, sizeof (int), 8, 0);
123 _eina_mempool_test(mp, EINA_TRUE, EINA_FALSE, EINA_FALSE); 86 _eina_mempool_test(mp, EINA_TRUE, EINA_FALSE, EINA_FALSE);
124
125 _mempool_shutdown();
126} 87}
127EFL_END_TEST 88EFL_END_TEST
128#endif 89#endif