| 502 | ////////////////////// Helpers /////////////////////////////////////////////// |
| 503 | |
| 504 | Path TestProjectController::writeProjectConfig(const QString& name) |
| 505 | { |
| 506 | Path configPath = Path(m_scratchDir.absolutePath() + '/' + name + ".kdev4"); |
| 507 | QFile f(configPath.pathOrUrl()); |
| 508 | f.open(QIODevice::WriteOnly); |
| 509 | QTextStream str(&f); |
| 510 | str << "[Project]\n" |
| 511 | << "Name=" << name << "\n"; |
| 512 | f.close(); |
| 513 | return configPath; |
| 514 | } |
| 515 | |
| 516 | ////////////////// Custom assertions ///////////////////////////////////////// |
| 517 | |