diff options
author | Jakub Jelen <jjelen@redhat.com> | 2018-11-27 16:54:16 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-01-09 10:14:56 +0100 |
commit | d4e5644e217f2a21376adb1ccf6457a1a7e7b44e (patch) | |
tree | 1f867a564cc1d5c03378700ce3c299bcda7a028b | |
parent | 42c92074b90d3229632486a27d53dfddae6db6e1 (diff) | |
download | libssh-d4e5644e217f2a21376adb1ccf6457a1a7e7b44e.tar.gz libssh-d4e5644e217f2a21376adb1ccf6457a1a7e7b44e.tar.xz libssh-d4e5644e217f2a21376adb1ccf6457a1a7e7b44e.zip |
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>
-rw-r--r-- | tests/client/torture_sftp_read.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) |