From f9bf2fb4beebdee9ccfebc35579964c0d3b96dbd Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Tue, 19 Mar 2013 13:38:57 +0100 Subject: [PATCH] QmlProfiling: Test case uses port range Change-Id: I45fcb8b7d496d480ad7fa72064b13c00a4bd6fa6 Reviewed-by: Kai Koehne --- .../qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp | 10 +++++----- 1 file 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 9e2d018..f33ee55 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; -- 2.7.4