diff options
author | Kevin Funk <kfunk@kde.org> | 2017-07-05 22:54:56 +0200 |
---|---|---|
committer | Kevin Funk <kfunk@kde.org> | 2017-07-05 22:54:56 +0200 |
commit | e5f0b1e72d58d2b5547ece6c8b3c0c51fc1f089f (patch) | |
tree | 134503735aa116c600af06e57001b01eb490c014 | |
parent | a13f1dcd2e7b83fb0b318b9524021e7633519022 (diff) | |
download | extra-cmake-modules-e5f0b1e72d58d2b5547ece6c8b3c0c51fc1f089f.tar.gz extra-cmake-modules-e5f0b1e72d58d2b5547ece6c8b3c0c51fc1f089f.tar.bz2 |
Stabilize ECMQtDeclareLoggingCategoryTest
-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; |