From d47a557bd8af545ad39a9bd848d17a0c5c779ee4 Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Wed, 7 Oct 2015 15:44:22 +0300 Subject: 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 --- tests/auto/qsensorgestures/plugins/test/qtestrecognizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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())); } -- cgit v1.2.3