summaryrefslogtreecommitdiff
path: root/source4/torture/unix
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-01-12 13:45:33 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-01-14 22:09:24 +0100
commit0580a23d64be346e4526056c695249de4241cfa6 (patch)
treed49b49e1b65db2dd160d7b339a15731be4d1d2d7 /source4/torture/unix
parent8d90f2a03e58f34f36d345d31c5ca6090d37ff54 (diff)
downloadsamba-0580a23d64be346e4526056c695249de4241cfa6.tar.gz
s4:torture: Improve error message in whoami test
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Sun Jan 14 22:09:24 CET 2018 on sn-devel-144
Diffstat (limited to 'source4/torture/unix')
-rw-r--r--source4/torture/unix/whoami.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/torture/unix/whoami.c b/source4/torture/unix/whoami.c
index bb70e4781ae..efd9efaab57 100644
--- a/source4/torture/unix/whoami.c
+++ b/source4/torture/unix/whoami.c
@@ -91,8 +91,13 @@ static struct smbcli_state *connect_to_server(struct torture_context *tctx,
lpcfg_gensec_settings(tctx, tctx->lp_ctx));
if (!NT_STATUS_IS_OK(status)) {
- printf("failed to connect to //%s/%s: %s\n",
- host, share, nt_errstr(status));
+ torture_comment(tctx,
+ "FATAL: Failed to connect to //%s/%s "
+ "with %s - %s\n",
+ host,
+ share,
+ cli_credentials_get_username(creds),
+ nt_errstr(status));
return NULL;
}