diff options
author | Andreas Schneider <asn@samba.org> | 2018-01-12 13:45:33 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-01-14 22:09:24 +0100 |
commit | 0580a23d64be346e4526056c695249de4241cfa6 (patch) | |
tree | d49b49e1b65db2dd160d7b339a15731be4d1d2d7 /source4/torture/unix | |
parent | 8d90f2a03e58f34f36d345d31c5ca6090d37ff54 (diff) | |
download | samba-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.c | 9 |
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; } |