Commit 0dcb4bf0 authored by Marek Vavruša's avatar Marek Vavruša

tests/integration: added static hints module

parent 072887b0
......@@ -50,8 +50,9 @@ static PyObject* init(PyObject* self, PyObject* args)
/* Initialize resolution context */
#define CACHE_SIZE 100*1024
test_mm_ctx_init(&global_mm);
mm_ctx_init(&global_mm);
kr_context_init(&global_context, &global_mm);
kr_context_register(&global_context, "hints");
kr_context_register(&global_context, "iterate");
kr_context_register(&global_context, "itercache");
global_tmpdir = test_tmpdir_create();
......
......@@ -40,10 +40,11 @@ _test_integration_DEPEND := libmock_calls
$(eval $(call make_shared,_test_integration,tests))
# Preload mock library
insert_libs := tests/libmock_calls$(LIBEXT):modules/hints/hints$(LIBEXT)
ifeq ($(PLATFORM),Darwin)
preload_libs := @DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=tests/libmock_calls$(LIBEXT)
preload_libs := @DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=$(insert_libs)
else
preload_libs := @LD_PRELOAD=tests/libmock_calls$(LIBEXT)
preload_libs := @LD_PRELOAD=$(insert_libs)
endif
# Targets
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment