add more log output to see what's going on there...
authorRoker <roker@pep-project.org>
Mon, 13 Mar 2017 19:32:19 +0100
changeset 165460778ef1e780
parent 1653 949eca2414b7
child 1655 3a31b803ae83
child 1661 f0e19e88cf97
add more log output to see what's going on there...
test/least_color_group_test.cc
     1.1 --- a/test/least_color_group_test.cc	Mon Mar 13 17:23:46 2017 +0100
     1.2 +++ b/test/least_color_group_test.cc	Mon Mar 13 19:32:19 2017 +0100
     1.3 @@ -36,6 +36,7 @@
     1.4      int i = 0;
     1.5      
     1.6      for ( ; i < num_keyfiles; i++) {
     1.7 +        cout << "\t read keyfile #" << i << ": \"" << keynames[i] << "\"..." << std::endl;
     1.8          ifstream infilekey(keynames[i]);
     1.9          string keytextkey;
    1.10          while (!infilekey.eof()) {
    1.11 @@ -46,8 +47,9 @@
    1.12          infilekey.close(); 
    1.13          PEP_STATUS statuskey = import_key(session, keytextkey.c_str(), keytextkey.length(), NULL);
    1.14          assert(statuskey == PEP_STATUS_OK);
    1.15 -    }        
    1.16 -        
    1.17 +    }
    1.18 +    
    1.19 +    cout << "\t read keyfile mailfile \"" << mailfile << "\"..." << std::endl;
    1.20      ifstream infile(mailfile);
    1.21      string mailtext;
    1.22      while (!infile.eof()) {
    1.23 @@ -56,18 +58,19 @@
    1.24          mailtext += line + "\n";
    1.25      }
    1.26      infile.close(); 
    1.27 +    cout << "\t All files read successfully." << std::endl;
    1.28  
    1.29      pEp_identity * me1 = new_identity("pep.color.test.P@kgrothoff.org", NULL, 
    1.30 -                                      PEP_OWN_USERID, "Pep Color Test P (recip)");    
    1.31 +                                      PEP_OWN_USERID, "Pep Color Test P (recip)");
    1.32      me1->me = true;    
    1.33      PEP_STATUS status = update_identity(session, me1);
    1.34      trust_personal_key(session, me1);
    1.35 -    status = update_identity(session, me1);        
    1.36 +    status = update_identity(session, me1);
    1.37      
    1.38      pEp_identity * sender1 = new_identity("pep.color.test.V@kgrothoff.org",
    1.39                                            NULL, "TOFU_pep.color.test.V@kgrothoff.org",
    1.40                                            "Pep Color Test V (sender)");
    1.41 -                                          
    1.42 +    
    1.43      sender1->me = false;
    1.44      status = update_identity(session, sender1);
    1.45      trust_personal_key(session, sender1);