| 178 | } |
| 179 | |
| 180 | void TestProjectController::cleanup() |
| 181 | { |
| 182 | // also close any opened projects as we do not get a clean fixture, |
| 183 | // following tests should start off clean. |
| 184 | const auto projects = m_projCtrl->projects(); |
| 185 | for (IProject* p : projects) { |
| 186 | m_projCtrl->closeProject(p); |
| 187 | } |
| 188 | for (const Path& cfg : std::as_const(m_tmpConfigs)) { |
| 189 | QFile::remove(cfg.pathOrUrl()); |
| 190 | } |
| 191 | qDeleteAll(m_fileManagerGarbage); |
| 192 | m_fileManagerGarbage.clear(); |
| 193 | } |
| 194 | |
| 195 | ////////////////////// Commands ////////////////////////////////////////////// |
| 196 |
no test coverage detected