test/_test_template_cc
author Volker Birk <vb@pep-project.org>
Sun, 21 Feb 2016 12:00:51 +0100
changeset 452 7600b9f9ee9c
parent 53 d9eacd197962
child 1045 3b77f5e254c1
permissions -rw-r--r--
adding timestamp to crashdump
vb@53
     1
#include <iostream>
vb@53
     2
#include <string>
vb@53
     3
#include <assert.h>
vb@53
     4
#include "MODULE.h"
vb@53
     5
vb@53
     6
using namespace std;
vb@53
     7
vb@53
     8
int main() {
vb@53
     9
    cout << "\n*** MODULE_test ***\n\n";
vb@53
    10
vb@53
    11
    PEP_SESSION session;
vb@53
    12
    
vb@53
    13
    cout << "calling init()\n";
vb@53
    14
    PEP_STATUS status1 = init(&session);   
vb@53
    15
    assert(status1 == PEP_STATUS_OK);
vb@53
    16
    assert(session);
vb@53
    17
    cout << "init() completed.\n";
vb@53
    18
vb@53
    19
    // MODULE test code
vb@53
    20
vb@53
    21
vb@53
    22
    cout << "calling release()\n";
vb@53
    23
    release(session);
vb@53
    24
    return 0;
vb@53
    25
}
vb@53
    26