test_workingsets restoreSplits always fails on my system but not on the CI for months now
The test's output:
FAIL! : TestWorkingSetController::restoreSplits() 'sizes_bottom.at(0) < sizes_bottom.at(1)' returned FALSE. ()
Loc: [/path/to/kdevelop/kdevplatform/shell/tests/test_workingsets.cpp(228)]
When I comment the failing check out and add debug output with this patch, the output is:
QSYSTEM: TestWorkingSetController::restoreSplits() sizes_bottom (193, 193)
QSYSTEM: TestWorkingSetController::restoreSplits() sizes_mid (34, 54)
FAIL! : TestWorkingSetController::restoreSplits() Compared lists differ at index 0.
Actual (splitter_bottom->sizes()): 292
Expected (sizes_bottom): 193
Loc: [/path/to/kdevelop/kdevplatform/shell/tests/test_workingsets.cpp(270)]
Though most of the time this QCOMPARE(splitter_bottom->sizes(), sizes_bottom);
check succeeds.
Both the reliable and occasional failure occur in Xfce and KDE Plasma on my Manjaro GNU/Linux system.
89594aed added the test more than a year ago. I don't know if it ever succeeded on my system.
@croick, does the test fail or succeed on your system? Any ideas how to fix it?