Skip to content

Commit

Permalink
Merge pull request #14663 from LabNConsulting/chopps/grpc-utfix
Browse files Browse the repository at this point in the history
tests: have unit-test check more paths for the grpc.so module
  • Loading branch information
ton31337 authored Oct 27, 2023
2 parents 2f6fd43 + 8e630c2 commit e8d6b32
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/lib/test_grpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e8d6b32

Please sign in to comment.