[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise4/kdepimlibs/qgpgme/tests
From: Marc Mutz <mutz () kde ! org>
Date: 2011-01-24 12:19:45
Message-ID: 20110124121945.CB136AC8BA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1216725 by mutz:
qgpgme/tests/gpgagentmonitoreventcounterstest.cpp: redirect debug output into file
M +12 -0 gpgagentmonitoreventcounterstest.cpp
--- branches/kdepim/enterprise4/kdepimlibs/qgpgme/tests/gpgagentmonitoreventcounterstest.cpp \
#1216724:1216725 @@ -62,6 +62,8 @@
#include <QDebug>
#include <QCoreApplication>
+#include <QFile>
+#include <QTextStream>
#include <boost/shared_ptr.hpp>
@@ -269,6 +271,14 @@
}
+static void msgHandler( QtMsgType, const char * msg ) {
+ QFile file( "gpgagentmonitoreventcounterstest.log" );
+ if ( !file.open( QFile::Append|QFile::WriteOnly|QFile::Text ) )
+ return;
+ QTextStream ts( &file );
+ ts << msg << endl;
+}
+
int main( int argc, char * argv[] ) {
if ( GpgME::initializeLibrary(0) )
@@ -276,6 +286,8 @@
QCoreApplication app( argc, argv );
+ qInstallMsgHandler( &msgHandler );
+
run();
return 0;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic