Fix binlogrouter unit test failure
The test used LD_LIBRARY_PATH to find the module instead of using an explicit path.
This commit is contained in:
@ -95,11 +95,7 @@ int main(int argc, char **argv)
|
|||||||
mxs_log_set_priority_enabled(LOG_DEBUG, false);
|
mxs_log_set_priority_enabled(LOG_DEBUG, false);
|
||||||
mxs_log_set_priority_enabled(LOG_INFO, false);
|
mxs_log_set_priority_enabled(LOG_INFO, false);
|
||||||
|
|
||||||
char *lib_dir = getenv("LD_LIBRARY_PATH");
|
char *lib_dir = MXS_STRDUP_A("..");
|
||||||
if (lib_dir)
|
|
||||||
{
|
|
||||||
set_libdir(MXS_STRDUP_A(lib_dir));
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((service = service_alloc("test_service", "binlogrouter")) == NULL)
|
if ((service = service_alloc("test_service", "binlogrouter")) == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user