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/cppmodelmanagerinterface.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/cpptools/cppmodelmanagerinterface.h') diff --git a/src/plugins/cpptools/cppmodelmanagerinterface.h b/src/plugins/cpptools/cppmodelmanagerinterface.h index cb209f4340..d4c1a96693 100644 --- a/src/plugins/cpptools/cppmodelmanagerinterface.h +++ b/src/plugins/cpptools/cppmodelmanagerinterface.h @@ -269,6 +269,7 @@ public: virtual CppIndexingSupport *indexingSupport() = 0; virtual void setIncludePaths(const QStringList &includePaths) = 0; + virtual void enableGarbageCollector(bool enable) = 0; signals: /// Project data might be locked while this is emitted. -- cgit v1.2.1