mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
tests: Wait for sshd to start before connecting
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -971,6 +971,9 @@ void torture_setup_sshd_server(void **state)
|
|||||||
rc = system(sshd_start_cmd);
|
rc = system(sshd_start_cmd);
|
||||||
assert_return_code(rc, errno);
|
assert_return_code(rc, errno);
|
||||||
|
|
||||||
|
/* Give the process some time to start */
|
||||||
|
usleep(300);
|
||||||
|
|
||||||
setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "21", 1);
|
setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "21", 1);
|
||||||
unsetenv("UID_WRAPPER_ROOT");
|
unsetenv("UID_WRAPPER_ROOT");
|
||||||
unsetenv("PAM_WRAPPER");
|
unsetenv("PAM_WRAPPER");
|
||||||
|
|||||||
Reference in New Issue
Block a user