autotests: don't fail if an unrelated window shows up.
ClosedPublic

Authored by dfaure on Aug 10 2018, 10:09 AM.

Details

Summary

Running anything else in parallel to this test would make it fail,
because windowAdded() would be emitted with an unrelated window.
If we couldn't find our dialog when the signal is emitted,
just keep waiting for the signal to be emitted again.

Test Plan

ctest -j 8 .

Diff Detail

Repository
R242 Plasma Framework (Library)
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1667
Build 1685: arc lint + arc unit
dfaure created this revision.Aug 10 2018, 10:09 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 10 2018, 10:09 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
dfaure requested review of this revision.Aug 10 2018, 10:09 AM

@hein - or anyone else - ping?

It works for me if I use ctest -j6 . but fails for me if I use ctest -j12 . or ctest -j4 .

13/15 Test #3: plasma-dialogstatetest ...........***Failed 2.42 sec

3/15 Test #3: plasma-dialogstatetest ...........***Failed 1.71 sec

That doesn't tell me much about the failure you mention -- what, how and why...

I still think the patch is an improvement and should be pushed -- but now I regret putting it up for review, I almost completely forgot about it....

jtamate accepted this revision.Apr 1 2019, 7:13 AM

As I don't have enough contiguous free time even to test it again, feel free to commit.
You can add a comment to remember that it doesn't fix all the cases but is an improvement over previous situation.

This revision is now accepted and ready to land.Apr 1 2019, 7:13 AM
dfaure closed this revision.Apr 1 2019, 7:48 AM