Improve diagnostic output in tst_QDockWidget::floatingTabs()

Use QTRY_COMPARE instead of QTRY_VERIFY.

Task-number: QTBUG-115058
Pick-to: 6.6 6.5 6.2
Change-Id: I2bfb7c54476e8fdd4f34c74888f56a6f7942a7ee
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
bb10
Axel Spoerl 2023-08-11 08:48:33 +02:00
parent 52a464bad0
commit 814b7fd3a8
1 changed files with 2 additions and 2 deletions

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