mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
tests: Fix test with ssh as proxy command
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
da357b1cb4
commit
c8373e652c
@ -127,7 +127,7 @@ static void torture_options_set_proxycommand_ssh(void **state)
|
||||
socket_t fd;
|
||||
|
||||
rc = snprintf(command, sizeof(command),
|
||||
"ssh -oStrictHostKeyChecking=no -W [%%h]:%%p alice@%s",
|
||||
"ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -W [%%h]:%%p alice@%s",
|
||||
address);
|
||||
assert_true((size_t)rc < sizeof(command));
|
||||
|
||||
@ -152,7 +152,7 @@ static void torture_options_set_proxycommand_ssh_stderr(void **state)
|
||||
|
||||
/* The -vvv switches produce the desired output on the standard error */
|
||||
rc = snprintf(command, sizeof(command),
|
||||
"ssh -vvv -oStrictHostKeyChecking=no -W [%%h]:%%p alice@%s",
|
||||
"ssh -vvv -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -W [%%h]:%%p alice@%s",
|
||||
address);
|
||||
assert_true((size_t)rc < sizeof(command));
|
||||
|
||||
|
Reference in New Issue
Block a user