summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMilla Pohjanheimo <milla.pohjanheimo@qt.io>2016-09-27 10:50:28 +0300
committerYoann Lopes <yoann.lopes@qt.io>2016-09-27 08:03:18 +0000
commitc4bf444f5cf71518fb52bc4f19515a9a662a107d (patch)
treef1bbdc6bad6753c79072a02fc0c58ba63275c014 /tests
parent9d9a29bcc31101e394ea484f61985cac75524ba1 (diff)
downloadqtmultimedia-c4bf444f5cf71518fb52bc4f19515a9a662a107d.tar.gz
Stabilize pushSuspendResume() autotest
Same as 7d00a457e455e159a3dde30ad798be744cf38bb1. Change-Id: Ia7b01eef7650c1db23562d1a36a4a19748c92fc7 Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp b/tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp
index e36d38f4a..8990590ee 100644
--- a/tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp
+++ b/tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp
@@ -844,8 +844,8 @@ void tst_QAudioOutput::pushSuspendResume()
QTest::qWait(1000); // 1 seconds should be plenty
QVERIFY2(audioFile->atEnd(), "didn't play to EOF");
- QVERIFY2((stateSignal.count() == 1),
- QString("didn't emit IdleState signal when at EOF, got %1 signals instead").arg(stateSignal.count()).toLocal8Bit().constData());
+ QVERIFY(stateSignal.count() > 0);
+ QCOMPARE(qvariant_cast<QAudio::State>(stateSignal.last().at(0)), QAudio::IdleState);
QVERIFY2((audioOutput.state() == QAudio::IdleState), "didn't transitions to IdleState when at EOF");
stateSignal.clear();