mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
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:
committed by
Andreas Schneider
parent
42c92074b9
commit
d4e5644e21
@@ -98,6 +98,13 @@ static void torture_sftp_read_blocking(void **state) {
|
|||||||
int torture_run_tests(void) {
|
int torture_run_tests(void) {
|
||||||
int rc;
|
int rc;
|
||||||
struct CMUnitTest tests[] = {
|
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,
|
cmocka_unit_test_setup_teardown(torture_sftp_read_blocking,
|
||||||
session_setup,
|
session_setup,
|
||||||
session_teardown)
|
session_teardown)
|
||||||
|
|||||||
Reference in New Issue
Block a user