From d4e5644e217f2a21376adb1ccf6457a1a7e7b44e Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 27 Nov 2018 16:54:16 +0100 Subject: [PATCH] tests: Reproducer for T122 Signed-off-by: Jakub Jelen Reviewed-by: Daiki Ueno Reviewed-by: Andreas Schneider --- tests/client/torture_sftp_read.c | 7 +++++++ 1 file changed, 7 insertions(+) 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)