From fc08f85167e6a648310f564caf790fff00d92978 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 18 Sep 2008 14:19:50 +0000 Subject: [PATCH] Make module path global to all bench. SVN revision: 36080 --- legacy/eina/src/tests/eina_bench.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/legacy/eina/src/tests/eina_bench.c b/legacy/eina/src/tests/eina_bench.c index 8e0186ff8c..4e96b011ae 100644 --- a/legacy/eina/src/tests/eina_bench.c +++ b/legacy/eina/src/tests/eina_bench.c @@ -21,6 +21,7 @@ #include #include "eina_bench.h" +#include "eina_mempool.h" typedef struct _Eina_Benchmark_Case Eina_Benchmark_Case; struct _Eina_Benchmark_Case @@ -40,6 +41,7 @@ static const Eina_Benchmark_Case etc[] = { int main(int argc, char **argv) { + Eina_Module_Group *gp; Eina_Benchmark *test; Eina_Array *ea; unsigned int i; @@ -71,8 +73,16 @@ main(int argc, char **argv) eina_benchmark_free(test); } + eina_mempool_init(); + + eina_module_root_add(PACKAGE_BUILD_DIR"/src/tests"); + gp = eina_mempool_module_group_get(); + eina_module_path_register(gp, PACKAGE_BUILD_DIR"/src/modules", EINA_TRUE); + eina_bench_e17(); + eina_mempool_shutdown(); + eina_benchmark_shutdown(); return 0;