macos test fixes
This commit is contained in:
@@ -357,7 +357,13 @@ public:
|
||||
EXPECT_TRUE(utils::file::change_to_process_directory());
|
||||
|
||||
args.emplace_back(location);
|
||||
#if defined(__APPLE__)
|
||||
auto mount_cmd = "./repertory.app/Contents/MacOS/repertory " +
|
||||
utils::string::join(args, ' ');
|
||||
#else // !defined(__APPLE__)
|
||||
auto mount_cmd = "./repertory " + utils::string::join(args, ' ');
|
||||
#endif // defined(__APPLE__)
|
||||
|
||||
std::cout << "mount command: " << mount_cmd << std::endl;
|
||||
|
||||
ASSERT_EQ(0, system(mount_cmd.c_str()));
|
||||
@@ -369,7 +375,13 @@ public:
|
||||
EXPECT_TRUE(utils::file::change_to_process_directory());
|
||||
|
||||
args.emplace_back("-unmount");
|
||||
#if defined(__APPLE__)
|
||||
auto mount_cmd = "./repertory.app/Contents/MacOS/repertory " +
|
||||
utils::string::join(args, ' ');
|
||||
#else // !defined(__APPLE__)
|
||||
auto unmount_cmd = "./repertory " + utils::string::join(args, ' ');
|
||||
#endif // defined(__APPLE__)
|
||||
|
||||
std::cout << "unmount command: " << unmount_cmd << std::endl;
|
||||
|
||||
auto res = system(unmount_cmd.c_str());
|
||||
|
Reference in New Issue
Block a user