summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-07-16 16:37:14 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-07-17 07:19:34 +0000
commitb7d2215332a1ecd454e47fcd1f551f3bef53ddad (patch)
tree90e201cce774beaf6599e652979a7fceaa0505b9 /tests
parent4ba25e692a848b6a4756aaf9597293f7bc5b3630 (diff)
Unit test qaudiodecoder: Do not rely on qCompare(bool, int,...).
The overload was added for NokiaX86 and RVCT and is bound for removal. Task-number: QTBUG-47260 Change-Id: I8eb0333e0e20323ab20f361186d9a47fd3ab9f24 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/unit/qaudiodecoder/tst_qaudiodecoder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/unit/qaudiodecoder/tst_qaudiodecoder.cpp b/tests/auto/unit/qaudiodecoder/tst_qaudiodecoder.cpp
index 72ba0484c..5d1e045d0 100644
--- a/tests/auto/unit/qaudiodecoder/tst_qaudiodecoder.cpp
+++ b/tests/auto/unit/qaudiodecoder/tst_qaudiodecoder.cpp
@@ -128,7 +128,7 @@ void tst_QAudioDecoder::read()
QVERIFY(!b.isValid());
// Wait a while
- QTRY_COMPARE(d.bufferAvailable(), 1);
+ QTRY_VERIFY(d.bufferAvailable());
QVERIFY(d.bufferAvailable());
@@ -189,7 +189,7 @@ void tst_QAudioDecoder::stop()
QVERIFY(!b.isValid());
// Wait a while
- QTRY_COMPARE(d.bufferAvailable(), 1);
+ QTRY_VERIFY(d.bufferAvailable());
QVERIFY(d.bufferAvailable());
@@ -231,7 +231,7 @@ void tst_QAudioDecoder::format()
QVERIFY(!b.isValid());
// Wait a while
- QTRY_COMPARE(d.bufferAvailable(), 1);
+ QTRY_VERIFY(d.bufferAvailable());
b = d.read();
QVERIFY(d.audioFormat() == b.format());
@@ -251,7 +251,7 @@ void tst_QAudioDecoder::format()
// Decode again
d.start();
- QTRY_COMPARE(d.bufferAvailable(), 1);
+ QTRY_VERIFY(d.bufferAvailable());
b = d.read();
QVERIFY(d.audioFormat() == f);