Skip to content

Commit

Permalink
Fix paths and assertion for Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Shreyas Atre <[email protected]>
  • Loading branch information
SAtacker committed Feb 4, 2024
1 parent 6463511 commit 17b5925
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions unittests/CppInterOp/DynamicLibraryManagerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ TEST(UtilsPlatform, DLTest) {
auto dlopen_handle = Cpp::utils::platform::DLOpen(
"./libTestSharedLib.dll", err);
#else
auto dlopen_handle = Cpp::utils::platform::DLOpen(
"./libTestSharedLib.so", err);
auto dlopen_handle =
Cpp::utils::platform::DLOpen("../bin/libTestSharedLib.so", err);
#endif
EXPECT_TRUE(dlopen_handle);
EXPECT_TRUE(err.empty());
Cpp::utils::platform::DLOpen("missing", err);
EXPECT_TRUE(err.find("no such file") != std::string::npos);
EXPECT_TRUE(err.find("no such file") != std::string::npos ||
err.find("No such file") != std::string::npos);
}

0 comments on commit 17b5925

Please sign in to comment.