File: init_gpgpme.c

package info (click to toggle)
libisds 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,348 kB
  • ctags: 1,659
  • sloc: ansic: 24,898; sh: 11,772; makefile: 393; xml: 375; sed: 16
file content (21 lines) | stat: -rw-r--r-- 374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "../test.h"
#include "crypto.h"

static int test_init_gpgme(const isds_error error) {
    isds_error err;

    err = _isds_init_gpgme(NULL);
    if (err != error) 
        FAIL_TEST("Wrong return value");

    PASS_TEST;
}

int main(int argc, char **argv) {

    INIT_TEST("init_gpgme");

    TEST("initialization", test_init_gpgme, IE_SUCCESS);

    SUM_TEST();
}