mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-05 20:55:46 +03:00
tests: Turn on kbdint tests in torture_auth
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -254,7 +254,6 @@ static void torture_auth_autopubkey_nonblocking(void **state) {
|
|||||||
assert_int_equal(rc, SSH_AUTH_SUCCESS);
|
assert_int_equal(rc, SSH_AUTH_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 /* FIXME Requires UsePAM and pam_wrapper */
|
|
||||||
static void torture_auth_kbdint(void **state) {
|
static void torture_auth_kbdint(void **state) {
|
||||||
struct torture_state *s = *state;
|
struct torture_state *s = *state;
|
||||||
ssh_session session = s->ssh.session;
|
ssh_session session = s->ssh.session;
|
||||||
@@ -335,7 +334,6 @@ static void torture_auth_kbdint_nonblocking(void **state) {
|
|||||||
}
|
}
|
||||||
assert_int_equal(rc, SSH_AUTH_SUCCESS);
|
assert_int_equal(rc, SSH_AUTH_SUCCESS);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void torture_auth_password(void **state) {
|
static void torture_auth_password(void **state) {
|
||||||
struct torture_state *s = *state;
|
struct torture_state *s = *state;
|
||||||
@@ -465,14 +463,12 @@ int torture_run_tests(void) {
|
|||||||
cmocka_unit_test_setup_teardown(torture_auth_password_nonblocking,
|
cmocka_unit_test_setup_teardown(torture_auth_password_nonblocking,
|
||||||
session_setup,
|
session_setup,
|
||||||
session_teardown),
|
session_teardown),
|
||||||
#if 0 /* FIXME requires UsePAM and probably pam_wrapper */
|
|
||||||
cmocka_unit_test_setup_teardown(torture_auth_kbdint,
|
cmocka_unit_test_setup_teardown(torture_auth_kbdint,
|
||||||
session_setup,
|
session_setup,
|
||||||
session_teardown),
|
session_teardown),
|
||||||
cmocka_unit_test_setup_teardown(torture_auth_kbdint_nonblocking,
|
cmocka_unit_test_setup_teardown(torture_auth_kbdint_nonblocking,
|
||||||
session_setup,
|
session_setup,
|
||||||
session_teardown),
|
session_teardown),
|
||||||
#endif
|
|
||||||
cmocka_unit_test_setup_teardown(torture_auth_autopubkey,
|
cmocka_unit_test_setup_teardown(torture_auth_autopubkey,
|
||||||
pubkey_setup,
|
pubkey_setup,
|
||||||
session_teardown),
|
session_teardown),
|
||||||
|
Reference in New Issue
Block a user