forked from qt-creator/qt-creator
CppTools: Remove test file after test
In test_includeGroups_detectIncludeGroupsByIncludeType the test file was not removed and thus subsequent and isolated executions of this test failed. Change-Id: I5eeb4f004f5b146ac794ca913b4092629131fca3 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -96,6 +96,18 @@ private:
|
||||
bool m_runGarbageCollector;
|
||||
};
|
||||
|
||||
class FileWriterAndRemover
|
||||
{
|
||||
public:
|
||||
FileWriterAndRemover(const QString &filePath, const QByteArray &contents); // Writes file
|
||||
bool writtenSuccessfully() const { return m_writtenSuccessfully; }
|
||||
~FileWriterAndRemover(); // Removes file
|
||||
|
||||
private:
|
||||
const QString m_filePath;
|
||||
bool m_writtenSuccessfully;
|
||||
};
|
||||
|
||||
} // namespace Tests
|
||||
} // namespace CppTools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user