| 241 | // operations_test -------------------------------------------------------// |
| 242 | |
| 243 | void operations_test() |
| 244 | { |
| 245 | cout << "operations test..." << endl; |
| 246 | |
| 247 | error_code ec; |
| 248 | |
| 249 | CHECK(!create_directory("/", ec)); |
| 250 | |
| 251 | CHECK(!boost::filesystem::remove("no-such-file-or-directory")); |
| 252 | CHECK(!remove_all("no-such-file-or-directory")); |
| 253 | |
| 254 | space_info info = space("/"); |
| 255 | |
| 256 | CHECK(info.available <= info.capacity); |
| 257 | |
| 258 | CHECK(equivalent("/", "/")); |
| 259 | CHECK(!equivalent("/", ".")); |
| 260 | |
| 261 | std::time_t ft = last_write_time("."); |
| 262 | ft = -1; |
| 263 | last_write_time(".", ft, ec); |
| 264 | } |
| 265 | |
| 266 | // directory_entry_test ------------------------------------------------------------// |
| 267 |
no test coverage detected