1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00
Nicolas Viennot 02c86e0ffb Adding libssh
2013-06-10 02:18:04 -04:00

24 lines
403 B
C

#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);
}