| 31 | namespace KDevMI::Testing { |
| 32 | |
| 33 | QUrl findExecutable(const QString& name) |
| 34 | { |
| 35 | QString exeExtension; |
| 36 | #ifdef Q_OS_WIN |
| 37 | exeExtension = QStringLiteral(".exe"); |
| 38 | #endif |
| 39 | QFileInfo info(QString::fromLocal8Bit(DEBUGGEE_BIN_DIR), name + exeExtension); |
| 40 | Q_ASSERT_X(info.exists(), "findExecutable", info.filePath().toLocal8Bit()); |
| 41 | Q_ASSERT(info.isExecutable()); |
| 42 | return QUrl::fromLocalFile(info.canonicalFilePath()); |
| 43 | } |
| 44 | |
| 45 | QString findSourceFile(const QString& name) |
| 46 | { |
no test coverage detected