diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/unix/unix_info2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/unix/unix_info2.c b/source4/torture/unix/unix_info2.c index 4322d851e4..51e75047fb 100644 --- a/source4/torture/unix/unix_info2.c +++ b/source4/torture/unix/unix_info2.c @@ -65,8 +65,9 @@ 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, "failed to connect to //%s/%s: %s\n", + host, share, nt_errstr(status)); + torture_fail(tctx, "Failed to connect to server"); return NULL; } |