aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2019-09-14 10:52:37 -0700
committerCedric Bail <cedric.bail@free.fr>2019-09-17 10:24:07 -0700
commit93a382085b4c23f424ba1f7d53a80f1c702220c2 (patch)
tree0c0503fb04dc404d18fe46c61ff1b70a91d25dd8
parenteina: fix free support in eina OneBig mempool. (diff)
downloadefl-93a382085b4c23f424ba1f7d53a80f1c702220c2.tar.gz
eina: turn on Eina_Mempool tests for OneBig too.
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9940
-rw-r--r--src/tests/eina/eina_test_mempool.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/eina/eina_test_mempool.c b/src/tests/eina/eina_test_mempool.c
index 9fa9c940a5..78656cea53 100644
--- a/src/tests/eina/eina_test_mempool.c
+++ b/src/tests/eina/eina_test_mempool.c
@@ -88,6 +88,17 @@ EFL_START_TEST(eina_mempool_pass_through)
EFL_END_TEST
#endif
+#ifdef EINA_BUILD_ONE_BIG
+EFL_START_TEST(eina_mempool_one_big)
+{
+ Eina_Mempool *mp;
+
+ mp = eina_mempool_add("one_big", "test", NULL, sizeof (int), 384);
+ _eina_mempool_test(mp, EINA_FALSE, EINA_FALSE, EINA_TRUE);
+}
+EFL_END_TEST
+#endif
+
void
eina_test_mempool(TCase *tc)
{
@@ -97,4 +108,7 @@ eina_test_mempool(TCase *tc)
#ifdef EINA_BUILD_PASS_THROUGH
tcase_add_test(tc, eina_mempool_pass_through);
#endif
+#ifdef EINA_BUILD_ONE_BIG
+ tcase_add_test(tc, eina_mempool_one_big);
+#endif
}