| 178 | const fs::path temp_dir(fs::unique_path("op-test-%%%%-%%%%")); |
| 179 | |
| 180 | void create_file(const fs::path& ph, const std::string& contents = std::string()) |
| 181 | { |
| 182 | std::ofstream f(BOOST_FILESYSTEM_C_STR(ph)); |
| 183 | if (!f) |
| 184 | throw fs::filesystem_error("operations_test create_file", ph, error_code(errno, system_category())); |
| 185 | if (!contents.empty()) |
| 186 | f << contents; |
| 187 | } |
| 188 | |
| 189 | void verify_file(const fs::path& ph, const std::string& expected) |
| 190 | { |
no test coverage detected