From c365ff3d059a2bef3bc61c453c8aa8d558433deb 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 --- tests/torture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/torture.c b/tests/torture.c index e89cdec2..46ed61b2 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -970,8 +970,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);