aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2016-01-21 12:23:08 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-10-05 12:09:45 +0200
commita228c3f7283dfedaab5d9eb56b26a7fef3eb809f (patch)
tree9a30b9b7ee13b3219fcc17d4a80fc514fc377793
parent53ed121a9c424e013f67ba090dfa5a3c6c1f19c3 (diff)
downloadlibssh-a228c3f7283dfedaab5d9eb56b26a7fef3eb809f.tar.gz
libssh-a228c3f7283dfedaab5d9eb56b26a7fef3eb809f.tar.xz
libssh-a228c3f7283dfedaab5d9eb56b26a7fef3eb809f.zip
torture: Also write stderr to a file
This allows to capture debug information of the wrappers. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry-picked from commit c365ff3d)
-rw-r--r--tests/torture.c4
1 files 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);