Effects like Mouse Mark and Track Mouse call methods on effects in their
destructors. It might happen that effects points to deallocated memory
(i.e. it's a dangling pointer) because Qt processes events after MockEffectsHandler
has been destroyed.
Details
Details
- Reviewers
- None
- Group Reviewers
KWin
All tests in TestBuiltInEffectLoader are passing.
Diff Detail
Diff Detail
- Repository
- R108 KWin
- Branch
- fix-builtin-effectloader-test
- Lint
No Linters Available - Unit
No Unit Test Coverage
Comment Actions
Same with TestScriptedEffectLoader and TestPluginEffectLoader. Effects outlive MockEffectsHandler.
Comment Actions
Ugly solution, it doesn't work if some QVERIFY or QCOMPARE fails.
That's not really a problem. If a test fails, running the rest isn't too relevant. It's no worse than a test hitting an assert.
I've made an alternative, but I'd be more than happy to ship this.