diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2014-10-28 13:58:31 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2014-10-28 13:59:31 +0100 |
commit | e0bbddcd6f1d0488bce2ddfcefe00bfaecad4307 (patch) | |
tree | 6dfca6ecf59237952b4ca2f10a46b7baebe46585 /tests | |
parent | bfac1c827e2b3e88df29bf36e806c13f215bce1d (diff) |
Fix test on linux - state changes are not instant
Change-Id: I0e6808179afa09918882d8af8ca8c98236a1daa1
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/texttospeech/tst_qtexttospeech.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/texttospeech/tst_qtexttospeech.cpp b/tests/auto/texttospeech/tst_qtexttospeech.cpp index f534312..49ecc59 100644 --- a/tests/auto/texttospeech/tst_qtexttospeech.cpp +++ b/tests/auto/texttospeech/tst_qtexttospeech.cpp @@ -54,7 +54,7 @@ void tst_QTextToSpeech::say_hello() QElapsedTimer timer; timer.start(); tts.say(text); - QCOMPARE(tts.state(), QTextToSpeech::Speaking); + QTRY_COMPARE(tts.state(), QTextToSpeech::Speaking); QSignalSpy spy(&tts, SIGNAL(stateChanged(QTextToSpeech::State))); spy.wait(10000); QCOMPARE(tts.state(), QTextToSpeech::Ready); @@ -76,7 +76,7 @@ void tst_QTextToSpeech::speech_rate() QElapsedTimer timer; timer.start(); tts.say(text); - QCOMPARE(tts.state(), QTextToSpeech::Speaking); + QTRY_COMPARE(tts.state(), QTextToSpeech::Speaking); QSignalSpy spy(&tts, SIGNAL(stateChanged(QTextToSpeech::State))); spy.wait(10000); QCOMPARE(tts.state(), QTextToSpeech::Ready); |