print out the status before assert() crashes the program null_size_attachment
authorRoker <roker@pep-project.org>
Wed, 22 Jun 2016 16:59:07 +0200
branchnull_size_attachment
changeset 7568a06c2465017
parent 754 2aab9c3e29ca
child 771 c04f54a73ef8
child 923 7f06745d2a34
print out the status before assert() crashes the program
test/message_api_test.cc
     1.1 --- a/test/message_api_test.cc	Wed Jun 22 11:12:16 2016 +0200
     1.2 +++ b/test/message_api_test.cc	Wed Jun 22 16:59:07 2016 +0200
     1.3 @@ -50,6 +50,7 @@
     1.4      message *enc_msg2;
     1.5      cout << "calling encrypt_message()\n";
     1.6      status2 = encrypt_message(session, msg2, NULL, &enc_msg2, PEP_enc_PGP_MIME);
     1.7 +    cout << "encrypt_message returned with status " << status2 << endl;
     1.8      assert(status2 == PEP_STATUS_OK);
     1.9      assert(enc_msg2);
    1.10      cout << "message encrypted.\n";