tests: Fixed a build warning introduced before.
Этот коммит содержится в:
родитель
e12253168c
Коммит
2464a25de7
@ -150,9 +150,6 @@ static void torture_algorithms_zlib_openssh(void **state) {
|
||||
|
||||
int torture_run_tests(void) {
|
||||
int rc;
|
||||
|
||||
ssh_init();
|
||||
|
||||
const UnitTest tests[] = {
|
||||
unit_test_setup_teardown(torture_algorithms_aes128_cbc, setup, teardown),
|
||||
unit_test_setup_teardown(torture_algorithms_aes192_cbc, setup, teardown),
|
||||
@ -166,6 +163,8 @@ int torture_run_tests(void) {
|
||||
unit_test_setup_teardown(torture_algorithms_zlib_openssh, setup, teardown),
|
||||
};
|
||||
|
||||
ssh_init();
|
||||
|
||||
rc = run_tests(tests);
|
||||
ssh_finalize();
|
||||
|
||||
|
@ -153,15 +153,14 @@ static void torture_auth_password(void **state) {
|
||||
|
||||
int torture_run_tests(void) {
|
||||
int rc;
|
||||
|
||||
ssh_init();
|
||||
|
||||
const UnitTest tests[] = {
|
||||
unit_test_setup_teardown(torture_auth_kbdint, setup, teardown),
|
||||
unit_test_setup_teardown(torture_auth_password, setup, teardown),
|
||||
unit_test_setup_teardown(torture_auth_autopubkey, setup, teardown),
|
||||
};
|
||||
|
||||
ssh_init();
|
||||
|
||||
rc = run_tests(tests);
|
||||
ssh_finalize();
|
||||
|
||||
|
@ -93,13 +93,12 @@ static void torture_knownhosts_port(void **state) {
|
||||
|
||||
int torture_run_tests(void) {
|
||||
int rc;
|
||||
|
||||
ssh_init();
|
||||
|
||||
const UnitTest tests[] = {
|
||||
unit_test_setup_teardown(torture_knownhosts_port, setup, teardown),
|
||||
};
|
||||
|
||||
ssh_init();
|
||||
|
||||
rc = run_tests(tests);
|
||||
ssh_finalize();
|
||||
|
||||
|
@ -42,14 +42,14 @@ static void torture_options_set_proxycommand_notexist(void **state) {
|
||||
|
||||
int torture_run_tests(void) {
|
||||
int rc;
|
||||
|
||||
ssh_init();
|
||||
|
||||
const UnitTest tests[] = {
|
||||
unit_test_setup_teardown(torture_options_set_proxycommand, setup, teardown),
|
||||
unit_test_setup_teardown(torture_options_set_proxycommand_notexist, setup, teardown),
|
||||
};
|
||||
|
||||
|
||||
ssh_init();
|
||||
|
||||
rc = run_tests(tests);
|
||||
ssh_finalize();
|
||||
|
||||
|
@ -19,13 +19,12 @@ static void torture_sftp_ext_new(void **state) {
|
||||
|
||||
int torture_run_tests(void) {
|
||||
int rc;
|
||||
|
||||
ssh_init();
|
||||
|
||||
const UnitTest tests[] = {
|
||||
unit_test(torture_sftp_ext_new),
|
||||
};
|
||||
|
||||
ssh_init();
|
||||
|
||||
rc = run_tests(tests);
|
||||
ssh_finalize();
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user