diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2025-03-29 12:56:53 -0400 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2025-03-31 17:04:13 -0400 |
| commit | 51c8c0695192677f821759b98f8ba6496df41fa7 (patch) | |
| tree | 7c35345ea045547514529762da6003f3798a2f84 | |
| parent | d5a8339f65cf9f9102427fde9956056a3d596898 (diff) | |
tst_QLoggingRegistry: reinitialize the rules after modifying the env
Don't assume that this call to QLoggingRegistry::instance() was the
first in the test application's execution.
Change-Id: Ia2d32ed7c4d930bef30efffd0b7d38a536b95772
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
| -rw-r--r-- | tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp b/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp index 94e6bafa408..0fd62d40f62 100644 --- a/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp +++ b/tests/auto/corelib/io/qloggingregistry/tst_qloggingregistry.cpp @@ -193,6 +193,7 @@ private slots: QCOMPARE(qtDisabledByDefault.isDebugEnabled(), false); QLoggingRegistry ®istry = *QLoggingRegistry::instance(); + registry.initializeRules(); QCOMPARE(registry.ruleSets[QLoggingRegistry::ApiRules].size(), 0); QCOMPARE(registry.ruleSets[QLoggingRegistry::ConfigRules].size(), 0); QCOMPARE(registry.ruleSets[QLoggingRegistry::EnvironmentRules].size(), 1); |
