mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests: We can't test the accept right now.
This commit is contained in:
@@ -60,18 +60,22 @@ static void teardown(void **state)
|
|||||||
static void torture_ssh_forward(void **state)
|
static void torture_ssh_forward(void **state)
|
||||||
{
|
{
|
||||||
ssh_session session = *state;
|
ssh_session session = *state;
|
||||||
|
#if 0
|
||||||
ssh_channel c;
|
ssh_channel c;
|
||||||
|
#endif
|
||||||
int bound_port;
|
int bound_port;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
rc = ssh_forward_listen(session, "127.0.0.1", 8080, &bound_port);
|
rc = ssh_forward_listen(session, "127.0.0.1", 8080, &bound_port);
|
||||||
assert_int_equal(rc, SSH_OK);
|
assert_int_equal(rc, SSH_OK);
|
||||||
|
|
||||||
c = ssh_forward_accept(session, 1000);
|
#if 0
|
||||||
|
c = ssh_forward_accept(session, 60000);
|
||||||
assert_non_null(c);
|
assert_non_null(c);
|
||||||
|
|
||||||
ssh_channel_send_eof(c);
|
ssh_channel_send_eof(c);
|
||||||
ssh_channel_close(c);
|
ssh_channel_close(c);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int torture_run_tests(void) {
|
int torture_run_tests(void) {
|
||||||
|
|||||||
Reference in New Issue
Block a user