summaryrefslogtreecommitdiff
path: root/tests/lib/test_grpc.cpp
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-10-27 15:36:07 +0300
committerGitHub <noreply@github.com>2023-10-27 15:36:07 +0300
commite8d6b3248f9ec153c11510e85af25165c8196523 (patch)
treef400cd2345f72dbaa945e27f280e3b21d9259a4d /tests/lib/test_grpc.cpp
parent2f6fd432e02f61545cbc03909ebd4c7c56cf1767 (diff)
parent8e630c29465a44761814f61b56c6d00878c4919e (diff)
Merge pull request #14663 from LabNConsulting/chopps/grpc-utfix
tests: have unit-test check more paths for the grpc.so module
Diffstat (limited to 'tests/lib/test_grpc.cpp')
-rw-r--r--tests/lib/test_grpc.cpp11
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);