KCrash: remove debug output which breaks unittests from using ~/.qttest/config for categorized logging
ClosedPublic

Authored by dfaure on May 2 2020, 12:34 PM.

Details

Summary

kdebugsettings --test-mode allows to tune the categorized logging for unittests,
but if a very early qCDebug happens, QLoggingRegistry::initializeRules is called
before the unittest gets a chance to call QStandardPaths::setTestModeEnabled(true).

This is obviously a bit fragile overall; should all unittests do that in a constructor function? A bit ugly...

Diff Detail

Repository
R285 KCrash
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dfaure created this revision.May 2 2020, 12:34 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMay 2 2020, 12:34 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
dfaure requested review of this revision.May 2 2020, 12:34 PM
apol accepted this revision.May 3 2020, 2:47 PM
This revision is now accepted and ready to land.May 3 2020, 2:47 PM
This revision was automatically updated to reflect the committed changes.