summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-04-23 11:01:34 +0800
committerTim Blechmann <tim@klingt.org>2024-04-23 20:12:33 +0800
commit6875f88f6b7f17b6f6c65c5e57ca03e29d7e567d (patch)
treea0aebec8f6ce4f4b5e08453e24c30c19d93cb581
parent9b526fcd66282ecb47ddfdc0e3b34341ce965c19 (diff)
Tests: improve error reporting
Pick-to: 6.5 6.7 Change-Id: I4eebe17d40fa76ac5335fff2cad88e329cfb14b6 Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
-rw-r--r--tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
index 80b52cada..fa1450571 100644
--- a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
+++ b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
@@ -1834,7 +1834,7 @@ void tst_QMediaPlayerBackend::subsequentPlayback()
player.play();
QTRY_COMPARE(player.playbackState(), QMediaPlayer::PlayingState);
- QTRY_VERIFY(player.position() > 1000);
+ QTRY_COMPARE_GT(player.position(), 1000);
player.pause();
QCOMPARE(player.playbackState(), QMediaPlayer::PausedState);
// make sure position does not "jump" closer to the end of the file
@@ -1844,10 +1844,10 @@ void tst_QMediaPlayerBackend::subsequentPlayback()
QTRY_COMPARE(player.position(), qint64(0));
player.play();
QCOMPARE(player.playbackState(), QMediaPlayer::PlayingState);
- QTRY_VERIFY(player.position() > 1000);
+ QTRY_COMPARE_GT(player.position(), 1000);
player.pause();
QCOMPARE(player.playbackState(), QMediaPlayer::PausedState);
- QVERIFY(player.position() > 1000);
+ QCOMPARE_GT(player.position(), 1000);
}
void tst_QMediaPlayerBackend::multipleMediaPlayback()