From a228c3f7283dfedaab5d9eb56b26a7fef3eb809f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 21 Jan 2016 12:23:08 +0100 Subject: [PATCH] torture: Also write stderr to a file This allows to capture debug information of the wrappers. Signed-off-by: Andreas Schneider (cherry-picked from commit c365ff3d) --- tests/torture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/torture.c b/tests/torture.c index 42b64495..e36347c5 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -867,8 +867,8 @@ void torture_setup_sshd_server(void **state) s = *state; snprintf(sshd_start_cmd, sizeof(sshd_start_cmd), - "/usr/sbin/sshd -r -f %s -E %s/sshd/sshd.log", - s->srv_config, s->socket_dir); + "/usr/sbin/sshd -r -f %s -E %s/sshd/daemon.log 2> %s/sshd/cwrap.log", + s->srv_config, s->socket_dir, s->socket_dir); rc = system(sshd_start_cmd); assert_return_code(rc, errno);