Improve diagnostic output in tst_QDockWidget::floatingTabs()

Use QTRY_COMPARE instead of QTRY_VERIFY.

Task-number: QTBUG-115058
Change-Id: I2bfb7c54476e8fdd4f34c74888f56a6f7942a7ee
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
(cherry picked from commit 814b7fd3a82725a958af76282fcf56561bc92d42)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Axel Spoerl 2023-08-11 08:48:33 +02:00 committed by Qt Cherry-pick Bot
parent 6171141717
commit ea9f37469e

View File

@ -1432,10 +1432,10 @@ void tst_QDockWidget::floatingTabs()
qCDebug(lcTestDockWidget) << "Checking path consistency" << layout->layoutState.indexOf(d1) << layout->layoutState.indexOf(d2);
// Path1 must be identical
QTRY_VERIFY(path1 == layout->layoutState.indexOf(d1));
QTRY_COMPARE(path1, layout->layoutState.indexOf(d1));
// d1 must have a gap item due to size change
QTRY_VERIFY(layout->layoutState.indexOf(d2) == QList<int>() << path2 << 0);
QTRY_COMPARE(layout->layoutState.indexOf(d2), QList<int>() << path2 << 0);
#else
QSKIP("test requires -developer-build option");
#endif // QT_BUILD_INTERNAL