summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-10-26 21:39:13 -0400
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-10-27 12:37:19 +0000
commit715a17e17d0ab9241edd2b4d72e8b8866b48d866 (patch)
treeedf3401d78c7311baca6d0d4488fe577d8f0cd84 /tests/lib
parent010f8998d736f3420f6a6dd44af606b26dbe1108 (diff)
tests: have unit-test check more paths for the grpc.so module
Signed-off-by: Christian Hopps <chopps@labn.net> (cherry picked from commit 8e630c29465a44761814f61b56c6d00878c4919e)
Diffstat (limited to 'tests/lib')
-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);