| 46 | bool cleanup = true; |
| 47 | |
| 48 | void create_file(const path& ph, const std::string& contents = std::string()) |
| 49 | { |
| 50 | std::ofstream f(BOOST_FILESYSTEM_C_STR(ph)); |
| 51 | if (!f) |
| 52 | throw filesystem_error("operations_test create_file", ph, error_code(errno, system_category())); |
| 53 | if (!contents.empty()) |
| 54 | f << contents; |
| 55 | } |
| 56 | |
| 57 | void check(bool ok, const char* file, int line) |
| 58 | { |
no test coverage detected