aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/tests
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-07-29 16:12:02 +0300
committerOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-07-29 16:13:18 +0300
commit35d7352b3e2965768f90dc3f2ac17aec68af5df5 (patch)
treee9ce2b482fe1a4ea965701154ba4967256202462 /src/plugins/qmlprofiler/tests
parentcda7a3188f86f6a506225a679e123ee72b8c4f76 (diff)
parent5c5197d19d31a7c81f5bfb64a666b589bbd5638c (diff)
Merge remote-tracking branch 'origin/4.1'
Diffstat (limited to 'src/plugins/qmlprofiler/tests')
-rw-r--r--src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp b/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp
index 830b7101e2..d6785f5f9b 100644
--- a/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp
+++ b/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp
@@ -37,17 +37,6 @@ LocalQmlProfilerRunnerTest::LocalQmlProfilerRunnerTest(QObject *parent) : QObjec
{
}
-bool checkErrors(const QStringList &errors, int number)
-{
- if (errors.length() != number) {
- qDebug() << "Found unexpected errors:" << errors;
- return false;
- } else {
- return true;
- }
-}
-
-
void LocalQmlProfilerRunnerTest::testRunner()
{
Debugger::AnalyzerConnection connection;
@@ -64,7 +53,6 @@ void LocalQmlProfilerRunnerTest::testRunner()
bool running = false;
int runCount = 0;
- QStringList errors;
auto connectRunner = [&]() {
connect(runner, &LocalQmlProfilerRunner::started, this, [&running, &runCount](){
@@ -76,13 +64,6 @@ void LocalQmlProfilerRunnerTest::testRunner()
QVERIFY(running);
running = false;
});
-
- connect(runner, &LocalQmlProfilerRunner::appendMessage, this,
- [&errors](const QString &message, Utils::OutputFormat format) {
- if (format == Utils::ErrorMessageFormat && message !=
- ProjectExplorer::ApplicationLauncher::msgWinCannotRetrieveDebuggingOutput())
- errors << message;
- });
};
connectRunner();
@@ -91,7 +72,6 @@ void LocalQmlProfilerRunnerTest::testRunner()
QTRY_COMPARE_WITH_TIMEOUT(runCount, 1, 10000);
QTRY_VERIFY_WITH_TIMEOUT(!running, 10000);
- QVERIFY(checkErrors(errors, 1));
configuration.socket = connection.analyzerSocket = LocalQmlProfilerRunner::findFreeSocket();
configuration.debuggee.executable = qApp->applicationFilePath();
@@ -109,7 +89,6 @@ void LocalQmlProfilerRunnerTest::testRunner()
QTRY_COMPARE_WITH_TIMEOUT(runCount, 2, 10000);
QTRY_VERIFY_WITH_TIMEOUT(!running, 10000);
- QVERIFY(checkErrors(errors, 1));
delete rc;
@@ -126,13 +105,8 @@ void LocalQmlProfilerRunnerTest::testRunner()
rc->start();
QTRY_COMPARE_WITH_TIMEOUT(runCount, 3, 10000);
- QTest::qWait(1000);
- QVERIFY(running); // verify it doesn't spontaneously stop
- QVERIFY(checkErrors(errors, 1));
-
rc->stop();
QTRY_VERIFY_WITH_TIMEOUT(!running, 10000);
- QVERIFY(checkErrors(errors, 2)); // "The program has unexpectedly finished."
delete rc;
}