mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
torture: Increase wait time for sshd startup
It is much slower when started with valgrind. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -220,7 +220,8 @@ int torture_terminate_process(const char *pidfile)
|
|||||||
/* Make sure the daemon goes away! */
|
/* Make sure the daemon goes away! */
|
||||||
kill(pid, SIGTERM);
|
kill(pid, SIGTERM);
|
||||||
|
|
||||||
usleep(10000);
|
/* 10 ms */
|
||||||
|
usleep(10 * 000);
|
||||||
|
|
||||||
rc = kill(pid, 0);
|
rc = kill(pid, 0);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
@@ -725,8 +726,8 @@ 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 100ms time to initialize and start */
|
/* Give the process 500ms time to initialize and start */
|
||||||
usleep(100 * 1000);
|
usleep(500 * 1000);
|
||||||
|
|
||||||
setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "21", 1);
|
setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "21", 1);
|
||||||
unsetenv("PAM_WRAPPER");
|
unsetenv("PAM_WRAPPER");
|
||||||
|
|||||||
Reference in New Issue
Block a user