tests: Call ssh_init() and ssh_finalize() before we run the tests.
Этот коммит содержится в:
родитель
d4072082d0
Коммит
ef1866db76
@ -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;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user