aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@digia.com>2013-03-19 13:38:57 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-02 13:26:14 +0200
commitf9bf2fb4beebdee9ccfebc35579964c0d3b96dbd (patch)
tree79ba24ea19d915fae96479df02ee11292ba06670
parentf15595901b645fc3c168ef18f81ae4617b439e92 (diff)
QmlProfiling: Test case uses port range
Change-Id: I45fcb8b7d496d480ad7fa72064b13c00a4bd6fa6 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
-rw-r--r--tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp b/tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp
index 9e2d0189cc..f33ee55c46 100644
--- a/tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp
+++ b/tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp
@@ -46,8 +46,8 @@
#include "qqmldebugclient.h"
#include "../../../shared/util.h"
-#define PORT 13774
-#define STR_PORT "13774"
+#define STR_PORT_FROM "13774"
+#define STR_PORT_TO "13790"
struct QV8ProfilerData
{
@@ -208,9 +208,9 @@ bool tst_QV8ProfilerService::connect(bool block, const QString &testFile,
QStringList arguments;
if (block)
- arguments << QString("-qmljsdebugger=port:" STR_PORT ",block");
+ arguments << QString("-qmljsdebugger=port:" STR_PORT_FROM "," STR_PORT_TO ",block");
else
- arguments << QString("-qmljsdebugger=port:" STR_PORT);
+ arguments << QString("-qmljsdebugger=port:" STR_PORT_FROM "," STR_PORT_TO);
arguments << QQmlDataTest::instance()->testFile(testFile);
@@ -224,7 +224,7 @@ bool tst_QV8ProfilerService::connect(bool block, const QString &testFile,
return false;
}
- m_connection->connectToHost(QLatin1String("127.0.0.1"), PORT);
+ m_connection->connectToHost(QLatin1String("127.0.0.1"), m_process->debugPort());
if (!m_connection->waitForConnected()) {
*error = QLatin1String("Could not connect to debugger port.");
return false;