File: torture_init.c

package info (click to toggle)
libssh 0.5.4-1%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,364 kB
  • sloc: ansic: 27,753; cpp: 377; makefile: 22; sh: 22; python: 9
file content (23 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (4)
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) {
    const UnitTest tests[] = {
        unit_test(torture_ssh_init),
    };

    return run_tests(tests);
}