Set Loglevel to ERROR for testcases
authorChristoph Egger <Christoph.Egger@fau.de>
Thu, 26 Mar 2015 16:44:56 +0000 (17:44 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Thu, 26 Mar 2015 16:44:56 +0000 (17:44 +0100)
Everything lower is just noise for this purpose

src/test.cxx

index 36fb3b44218e29f90c791a7ae91afaef36cb306b..66cde1274861825036d3d7ab3ac0e6f961c23016 100644 (file)
@@ -10,6 +10,9 @@ int main(int argc, char **argv) {
        testing::InitGoogleTest(&argc, argv);
        log4cxx::BasicConfigurator::configure();
 
+       log4cxx::LevelPtr level = log4cxx::Level::getError();
+       log4cxx::Logger::getRootLogger()->setLevel(level);
+
        QApplication::addLibraryPath(CONFIG_LIBDIR);
        if (argc > 1)
                TEST_DATA_DIRECTORY = argv[1];