summaryrefslogtreecommitdiffstats
path: root/tests/auto/qaudiooutput/tst_qaudiooutput.cpp
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2009-10-22 21:16:40 (GMT)
committerKurt Korbatits <kurt.korbatits@nokia.com>2009-10-22 21:16:40 (GMT)
commita6a8e2b1918b2037c9d79e59aabf04ef09bee73e (patch)
treeee16ca938617986f9ac01d16eaa7b8e4d49c26d4 /tests/auto/qaudiooutput/tst_qaudiooutput.cpp
parent61836f454fd49286bce038c386eb8921b88450da (diff)
downloadQt-a6a8e2b1918b2037c9d79e59aabf04ef09bee73e.zip
Qt-a6a8e2b1918b2037c9d79e59aabf04ef09bee73e.tar.gz
Qt-a6a8e2b1918b2037c9d79e59aabf04ef09bee73e.tar.bz2
Update audio unit tests with clock() range checking.
-Check to make sure clock() return is in microseconds. Reviewed-by:Justin McPherson
Diffstat (limited to 'tests/auto/qaudiooutput/tst_qaudiooutput.cpp')
-rw-r--r--tests/auto/qaudiooutput/tst_qaudiooutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qaudiooutput/tst_qaudiooutput.cpp b/tests/auto/qaudiooutput/tst_qaudiooutput.cpp
index b46f88d..b001af1 100644
--- a/tests/auto/qaudiooutput/tst_qaudiooutput.cpp
+++ b/tests/auto/qaudiooutput/tst_qaudiooutput.cpp
@@ -150,7 +150,7 @@ void tst_QAudioOutput::pullFile()
QVERIFY(audio->state() == QAudio::ActiveState);
QVERIFY(audio->error() == QAudio::NoError);
QVERIFY(audio->periodSize() > 0);
- QVERIFY(audio->clock() > 0);
+ QVERIFY(audio->clock() > 10000 && audio->clock() < 800000);
QVERIFY(stateSignal.count() == 1); // State changed to QAudio::ActiveState
// Wait until finished...