forked from qt-creator/qt-creator
Clang: Disable logging by default in unit tests
Change-Id: I489cec1dcbcfba71dfa6679e8d90bbf8c8d0a867 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user