| 27 | using filesystem::path; |
| 28 | |
| 29 | void CreateFile(const path& p, time_t last_modified) { |
| 30 | EXPECT_TRUE(FileSystemUtil::CreateFile(p.string()).ok()); |
| 31 | // We modify the timestamps to guarantee that they are unique. |
| 32 | filesystem::last_write_time(p, last_modified); |
| 33 | EXPECT_TRUE(filesystem::exists(p)); |
| 34 | } |
| 35 | |
| 36 | TEST(LoggingSupport, DeleteOldLogs) { |
| 37 | path dir = filesystem::unique_path(); |