This commit is contained in:
Scott E. Graves 2024-07-23 08:00:48 -05:00
parent 3c7aa417a9
commit 51636fbac3

View File

@ -42,13 +42,11 @@ namespace repertory {
static std::string file_manager_dir = static std::string file_manager_dir =
utils::path::combine(get_test_dir(), {"file_manager_test"}); utils::path::combine(get_test_dir(), {"file_manager_test"});
#if defined(PROJECT_ENABLE_TESTING)
auto file_manager::open(std::shared_ptr<i_closeable_open_file> of, auto file_manager::open(std::shared_ptr<i_closeable_open_file> of,
const open_file_data &ofd, std::uint64_t &handle, const open_file_data &ofd, std::uint64_t &handle,
std::shared_ptr<i_open_file> &f) -> api_error { std::shared_ptr<i_open_file> &f) -> api_error {
return open(of->get_api_path(), of->is_directory(), ofd, handle, f, of); return open(of->get_api_path(), of->is_directory(), ofd, handle, f, of);
} }
#endif
TEST(file_manager, can_start_and_stop) { TEST(file_manager, can_start_and_stop) {
{ {