From 5a1ebdec9dc74b0a4d21396c5348206c679da7a0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 18 Jan 2016 12:01:56 +0100 Subject: tests: Wait for sshd to start before connecting Signed-off-by: Andreas Schneider (cherry-picked from commit a3557b81) --- tests/torture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/torture.c b/tests/torture.c index f9c9c036..3102d888 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -869,6 +869,9 @@ void torture_setup_sshd_server(void **state) rc = system(sshd_start_cmd); assert_return_code(rc, errno); + /* Give the process some time to start */ + usleep(300); + setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "21", 1); unsetenv("UID_WRAPPER_ROOT"); unsetenv("PAM_WRAPPER"); -- cgit v1.2.3