tests: Reproducer for T122

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Daiki Ueno <dueno@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2018-11-27 16:54:16 +01:00
committed by Andreas Schneider
parent 42c92074b9
commit d4e5644e21

View File

@@ -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)