summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2015-10-07 15:44:22 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2015-10-08 05:51:26 +0000
commitd47a557bd8af545ad39a9bd848d17a0c5c779ee4 (patch)
treefa23719b4719174d5c7ddbe6007a3aa444b527ef /tests
parent27d8477d00aef6508ff2a9b9cc722daf254f6b42 (diff)
Stabilze some tests in Tst_qsensorgestureTest
tst_recognizer() and tst_sensor_gesture_multi() fail in some cases. It happens because QTestRecognizer is emiting the "detected" signal every 10 ms and QTRY_COMPARE internally calls QTest::qWait(50). Thus it may happen that QTestRecognizer will emit the "detected" signal several times before the comparison. So increase the timeout for the timer in QTestRecognizer from 10 ms to 100 ms. Change-Id: I48b2b9455113db832f277abd05cc016bda5718cc Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp b/tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp
index 25863ec5..44fb3178 100644
--- a/tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp
+++ b/tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp
@@ -53,7 +53,7 @@ void QTestRecognizer::timeout()
{
Q_EMIT detected("tested");
Q_EMIT tested();
- QTimer::singleShot(10,this, SLOT(timeout()));
+ QTimer::singleShot(100, this, SLOT(timeout()));
}