From 746da71527c2bd62e216e6727e6763ab7cda1c95 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Tue, 17 Dec 2013 13:54:52 +0100 Subject: CppEditor/CppTools: Avoid triggering garbage collector on editor close in tests Closing an editor might trigger a timer which leads to the invocation of the garbage collector. This is unfavourable for the plugin tests since a test function closing an editor might influence a subsequent test function (e.g. files get removed from the global snapshot although they were added shortly before). Change-Id: Ia80c11f99e2437fe145dc2d983b21962539b5181 Reviewed-by: Erik Verbruggen --- src/plugins/cpptools/cpptoolstestcase.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/cpptools/cpptoolstestcase.h') diff --git a/src/plugins/cpptools/cpptoolstestcase.h b/src/plugins/cpptools/cpptoolstestcase.h index cdca7c3db7..c0f161bef2 100644 --- a/src/plugins/cpptools/cpptoolstestcase.h +++ b/src/plugins/cpptools/cpptoolstestcase.h @@ -73,6 +73,8 @@ public: bool succeededSoFar() const; void closeEditorAtEndOfTestCase(Core::IEditor *editor); + static bool closeEditorWithoutGarbageCollectorInvocation(Core::IEditor *editor); + static bool parseFiles(const QString &filePath); static bool parseFiles(const QStringList &filePaths); -- cgit v1.2.1