mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
tests: Call ssh_init() and ssh_finalize() before we run the tests.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#include "torture.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <libssh/libssh.h>
|
||||||
|
|
||||||
|
#include "torture.h"
|
||||||
|
|
||||||
static int verbosity = 0;
|
static int verbosity = 0;
|
||||||
|
|
||||||
@@ -9,8 +10,16 @@ int torture_libssh_verbosity(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
int rc;
|
||||||
|
|
||||||
(void) argc;
|
(void) argc;
|
||||||
(void) argv;
|
(void) argv;
|
||||||
|
|
||||||
return torture_run_tests();
|
ssh_init();
|
||||||
|
|
||||||
|
rc = torture_run_tests();
|
||||||
|
|
||||||
|
ssh_finalize();
|
||||||
|
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user