From: Andreas Schneider Date: Fri, 12 Jan 2018 12:45:33 +0000 (+0100) Subject: s4:torture: Improve error message in whoami test X-Git-Tag: samba-4.8.0rc1~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0580a23d64be346e4526056c695249de4241cfa6;p=thirdparty%2Fsamba.git s4:torture: Improve error message in whoami test Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Sun Jan 14 22:09:24 CET 2018 on sn-devel-144 --- 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; }