File: torture_init.c

package info (click to toggle)
libssh 0.7.3-2%2Bdeb9u2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,748 kB
  • sloc: ansic: 44,393; cpp: 389; makefile: 41; sh: 22; python: 9
file content (23 lines) | stat: -rw-r--r-- 429 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
22
23
#define LIBSSH_STATIC

#include "torture.h"
#include "libssh/libssh.h"

static void torture_ssh_init(void **state) {
    int rc;

    (void) state;

    rc = ssh_init();
    assert_int_equal(rc, SSH_OK);
    rc = ssh_finalize();
    assert_int_equal(rc, SSH_OK);
}

int torture_run_tests(void) {
    UnitTest tests[] = {
        unit_test(torture_ssh_init),
    };
    torture_filter_tests(tests);
    return run_tests(tests);
}