diff --git a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp index d4e9224e..a4537290 100644 --- a/repertory/repertory_test/include/fixtures/fuse_fixture.hpp +++ b/repertory/repertory_test/include/fixtures/fuse_fixture.hpp @@ -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());