From f810ce9ea3b8fbbc2fee0c39db7fb3dcf10f6cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 2 Jan 2018 09:39:48 +0200 Subject: [PATCH] Fix binlogrouter unit test failure The test used LD_LIBRARY_PATH to find the module instead of using an explicit path. --- server/modules/routing/binlogrouter/test/testbinlog.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/modules/routing/binlogrouter/test/testbinlog.c b/server/modules/routing/binlogrouter/test/testbinlog.c index d34f78345..abcc4f73f 100644 --- a/server/modules/routing/binlogrouter/test/testbinlog.c +++ b/server/modules/routing/binlogrouter/test/testbinlog.c @@ -95,11 +95,7 @@ int main(int argc, char **argv) mxs_log_set_priority_enabled(LOG_DEBUG, false); mxs_log_set_priority_enabled(LOG_INFO, false); - char *lib_dir = getenv("LD_LIBRARY_PATH"); - if (lib_dir) - { - set_libdir(MXS_STRDUP_A(lib_dir)); - } + char *lib_dir = MXS_STRDUP_A(".."); if ((service = service_alloc("test_service", "binlogrouter")) == NULL) {