| 196 | } |
| 197 | |
| 198 | void removeTestFiles(const QStringList &fileNames, const QString &dir) |
| 199 | { |
| 200 | QDir curDir; |
| 201 | foreach (QString fileName, fileNames) { |
| 202 | curDir.remove(QDir(dir).filePath(fileName)); |
| 203 | } |
| 204 | foreach (QString fileName, fileNames) { |
| 205 | QDir fileDir = QFileInfo(QDir(dir).filePath(fileName)).dir(); |
| 206 | if (fileDir.exists()) { |
| 207 | // Non-empty dirs won't get removed, and that's good. |
| 208 | curDir.rmpath(fileDir.path()); |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | int main(int argc, char **argv) |
| 214 | { |
no outgoing calls
no test coverage detected