Clang: Disable logging by default in unit tests

Change-Id: I489cec1dcbcfba71dfa6679e8d90bbf8c8d0a867
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Marco Bubke
2015-09-30 14:21:34 +02:00
parent 210228da1f
commit a4917d3fdd

View File

@@ -33,6 +33,7 @@
#include <cmbmessages.h>
#include <QCoreApplication>
#include <QLoggingCategory>
#include <gtest/gtest.h>
#include "gtest-qt-printing.h"
@@ -44,6 +45,8 @@ int main(int argc, char *argv[])
QCoreApplication application(argc, argv);
QLoggingCategory::setFilterRules(QStringLiteral("*.info=false\n*.debug=false\n*.warning=false"));
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}