Skip to content

Commit

Permalink
Rename err_ to err
Browse files Browse the repository at this point in the history
Signed-off-by: Shreyas Atre <[email protected]>
  • Loading branch information
SAtacker committed Jan 27, 2024
1 parent 45dafa6 commit 6d3a759
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions unittests/CppInterOp/DynamicLibraryManagerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,16 @@ TEST(DynamicLibraryManagerTest, Sanity) {
}

TEST(UtilsPlatform, DLTest) {
std::string err_ = "";
std::string err = "";
#ifdef __APPLE__
auto dlopen_handle = Cpp::utils::platform::DLOpen(
"./unittests/CppInterOp/libTestSharedLib.dylib", err);
#elif defined(__WIN32__)
auto dlopen_handle = Cpp::utils::platform::DLOpen(
"./unittests/CppInterOp/libTestSharedLib.dll", err);
#else
auto dlopen_handle = Cpp::utils::platform::DLOpen(
"./unittests/CppInterOp/libTestSharedLib.dylib", err_);
"./unittests/CppInterOp/libTestSharedLib.so", err);
#endif
(void)dlopen_handle;
}

0 comments on commit 6d3a759

Please sign in to comment.