summaryrefslogtreecommitdiff
path: root/tests/auto/qgeopositioninfosource/testqgeopositioninfosource.cpp
diff options
context:
space:
mode:
authoralex <alex.blasche@nokia.com>2011-11-22 15:25:16 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-22 08:31:12 +0100
commit77ebe040ce5ac1b2992c24a1d4190796defc9ca8 (patch)
treee4999d3303a8f990b6a836afed810d9b2d61a259 /tests/auto/qgeopositioninfosource/testqgeopositioninfosource.cpp
parenta72119061f9c2a2d3088f1a8b3ac3fcfa47c3426 (diff)
downloadqtlocation-77ebe040ce5ac1b2992c24a1d4190796defc9ca8.tar.gz
QPositionInfoSource uses a 5min test timeout
Traditional satellite system require about 2 mins to aquire a signal. This change enables running of the test on real hardware using GLONASS or GPS. Change-Id: Id394a158b95ff93ecd20f7259dbf96fadd69de6e Reviewed-by: Carsten Bürger <carsten.burger@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'tests/auto/qgeopositioninfosource/testqgeopositioninfosource.cpp')
-rw-r--r--tests/auto/qgeopositioninfosource/testqgeopositioninfosource.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qgeopositioninfosource/testqgeopositioninfosource.cpp b/tests/auto/qgeopositioninfosource/testqgeopositioninfosource.cpp
index 88122943..357bf5e3 100644
--- a/tests/auto/qgeopositioninfosource/testqgeopositioninfosource.cpp
+++ b/tests/auto/qgeopositioninfosource/testqgeopositioninfosource.cpp
@@ -346,7 +346,9 @@ void TestQGeoPositionInfoSource::lastKnownPosition()
// changed by the time it is checked)
QEventLoop loop;
QTimer timer;
- timer.setInterval(9500);
+ //simulated CI tests will quickly return -> real GPS tests take 2 minutes for satellite systems
+ //use a 5 min timeout
+ timer.setInterval(300000);
connect(m_source, SIGNAL(positionUpdated(const QGeoPositionInfo&)),
&loop, SLOT(quit()));
connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));