test/crashdump_test.cc
author Edouard Tisserant <edouard@pep-project.org>
Mon, 24 Oct 2016 20:44:48 +0200
changeset 1329 876ad7615d75
parent 455 154302d31d05
child 1513 e7f7e42385b5
permissions -rw-r--r--
sync : fix encrypted sync messages not being injected when decrypted from non-sync session
     1 #include <iostream>
     2 #include <string>
     3 #include <assert.h>
     4 #include "pEpEngine.h"
     5 
     6 using namespace std;
     7 
     8 int main() {
     9     cout << "\n*** crashdump_test ***\n\n";
    10 
    11     PEP_SESSION session;
    12     
    13     cout << "calling init()\n";
    14     PEP_STATUS status1 = init(&session);   
    15     assert(status1 == PEP_STATUS_OK);
    16     assert(session);
    17     cout << "init() completed.\n";
    18 
    19     // MODULE test code
    20 
    21     char *text;
    22     PEP_STATUS status2 = get_crashdump_log(session, 0, &text);
    23     assert(status2 == PEP_STATUS_OK);
    24     cout << text;
    25 
    26     cout << "calling release()\n";
    27     release(session);
    28     return 0;
    29 }
    30