1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

Remove internal calls to ssh_init

Since the call is made automatically when the library is loaded, these
calls are no longer required (if the library is not linked statically).

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2018-07-31 16:15:01 +02:00
committed by Andreas Schneider
parent e0e0d62a71
commit 9305762fcd
6 changed files with 6 additions and 27 deletions

View File

@ -727,8 +727,14 @@ int torture_run_tests(void)
* The original tests in torture_pki_rsa.c require files to be erased
*/
/*
* If the library is statically linked, ssh_init() is not called
* automatically
*/
ssh_init();
torture_filter_tests(tests);
rc = cmocka_run_group_tests(tests, NULL, NULL);
ssh_finalize();
return rc;
}