diff options
-rw-r--r-- | tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp b/tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp index 4abcd527..00253d6c 100644 --- a/tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp +++ b/tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp @@ -31,7 +31,12 @@ #include <iostream> -int main(int argc, char **argv) { +int main(int argc, char **argv) +{ + // Make the unit test more reliable on system which have these env vars set + qunsetenv("QT_LOGGING_CONF"); + qunsetenv("QT_LOGGING_RULES"); + QCoreApplication qapp(argc, argv); bool success = true; |