forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.0'
Conflicts: src/plugins/valgrind/valgrindruncontrolfactory.cpp Change-Id: I96c0f8cc3b49f8f55f45ef1f839857f878f532f4
This commit is contained in:
@@ -163,6 +163,8 @@
|
||||
#include <cpptools/cpptoolstestcase.h>
|
||||
#include <cpptools/projectinfo.h>
|
||||
|
||||
#include <utils/executeondestruction.h>
|
||||
|
||||
#include <QTest>
|
||||
#include <QSignalSpy>
|
||||
#include <QTestEventLoop>
|
||||
@@ -3704,6 +3706,9 @@ void DebuggerUnitTests::testStateMachine()
|
||||
ProjectExplorerPlugin::buildProject(SessionManager::startupProject());
|
||||
loop.exec();
|
||||
|
||||
ExecuteOnDestruction guard([] () {
|
||||
EditorManager::closeAllEditors(false);
|
||||
});
|
||||
DebuggerRunParameters rp;
|
||||
Target *t = SessionManager::startupProject()->activeTarget();
|
||||
QVERIFY(t);
|
||||
@@ -3720,7 +3725,6 @@ void DebuggerUnitTests::testStateMachine()
|
||||
});
|
||||
|
||||
QTestEventLoop::instance().enterLoop(5);
|
||||
EditorManager::closeAllEditors(false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user