diff --git a/tests/client/torture_sftp_read.c b/tests/client/torture_sftp_read.c index f17fe7e2..5c83552c 100644 --- a/tests/client/torture_sftp_read.c +++ b/tests/client/torture_sftp_read.c @@ -98,6 +98,13 @@ static void torture_sftp_read_blocking(void **state) { int torture_run_tests(void) { int rc; struct CMUnitTest tests[] = { + /* This test is intentionally running twice to trigger a bug in OpenSSH + * or in pam_wrapper, causing the second invocation to fail. + * See: https://bugs.libssh.org/T122 + */ + cmocka_unit_test_setup_teardown(torture_sftp_read_blocking, + session_setup, + session_teardown), cmocka_unit_test_setup_teardown(torture_sftp_read_blocking, session_setup, session_teardown)