From 0150cb291854caa9554b73d7e5e22839982fc64e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 8 Aug 2025 08:27:04 -0500 Subject: [PATCH] macos test fixes --- .../repertory_test/include/fixtures/fuse_fixture.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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());