[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/libkleo/tests
From:       Marc Mutz <mutz () kde ! org>
Date:       2010-11-29 13:58:56
Message-ID: 20101129135856.D425DAC8A5 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1202047 by mutz:

libkleo/tests/test_cryptoconfig: need to initialise gpgme++ library

 M  +6 -0      test_cryptoconfig.cpp  


--- trunk/KDE/kdepim/libkleo/tests/test_cryptoconfig.cpp #1202046:1202047
@@ -38,11 +38,17 @@
 //Added by qt3to4:
 using namespace std;
 
+#include <gpgme++/global.h>
+#include <gpgme++/error.h>
+
 #include <stdlib.h>
 #include <assert.h>
 
 int main( int argc, char** argv ) {
 
+  if ( GpgME::initializeLibrary( 0 ) )
+    return 1;
+
   KAboutData aboutData( "test_cryptoconfig", 0, ki18n("CryptoConfig Test"), "0.1" );
   KCmdLineArgs::init( argc, argv, &aboutData );
   KApplication app( false );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic