diff options
Diffstat (limited to 'tests/lib/test_grpc.cpp')
| -rw-r--r-- | tests/lib/test_grpc.cpp | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lib/test_grpc.cpp b/tests/lib/test_grpc.cpp index 182c1d338d..957ffdefaa 100644 --- a/tests/lib/test_grpc.cpp +++ b/tests/lib/test_grpc.cpp @@ -92,6 +92,17 @@ static void static_startup(void)  		grpc_module = frrmod_load("grpc:50051", modpath.c_str(),  					  _err_print, 0);  	} +	if (!grpc_module) { +		modpath = std::string(binpath) + +			  std::string("../../../lib/.libs"); +		grpc_module = frrmod_load("grpc:50051", modpath.c_str(), +					  _err_print, 0); +	} +	if (!grpc_module) { +		modpath = std::string(binpath) + std::string("../../../lib"); +		grpc_module = frrmod_load("grpc:50051", modpath.c_str(), +					  _err_print, 0); +	}  	if (!grpc_module)  		exit(1);  | 
