test/_test_template_cc
author Roker <roker@pep-project.org>
Tue, 20 Sep 2016 15:54:57 +0200
branchroker-linux
changeset 1168 4d4e3ecbaf8b
parent 53 d9eacd197962
child 1045 3b77f5e254c1
permissions -rw-r--r--
merge "default" into my branch
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