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...