plugins also have a .so suffix on MacOS (unlike shared libs)
This commit is contained in:
@ -328,11 +328,7 @@ TEST_F(SimpleCommandsTest, Units)
|
|||||||
#if defined(LMP_PLUGIN)
|
#if defined(LMP_PLUGIN)
|
||||||
TEST_F(SimpleCommandsTest, Plugin)
|
TEST_F(SimpleCommandsTest, Plugin)
|
||||||
{
|
{
|
||||||
#if defined(__APPLE__)
|
|
||||||
std::string loadfmt("plugin load {}plugin.dylib");
|
|
||||||
#else
|
|
||||||
std::string loadfmt("plugin load {}plugin.so");
|
std::string loadfmt("plugin load {}plugin.so");
|
||||||
#endif
|
|
||||||
::testing::internal::CaptureStdout();
|
::testing::internal::CaptureStdout();
|
||||||
lmp->input->one(fmt::format(loadfmt, "hello"));
|
lmp->input->one(fmt::format(loadfmt, "hello"));
|
||||||
auto text = ::testing::internal::GetCapturedStdout();
|
auto text = ::testing::internal::GetCapturedStdout();
|
||||||
|
|||||||
Reference in New Issue
Block a user