From 84d6e09b954548d90d996f3ef6ce89edcbef3c24 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 20 Aug 2012 21:29:26 +1000 Subject: s4-torture: Use torture_fail() in the unix.unix_info2 test Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Mon Aug 20 15:36:48 CEST 2012 on sn-devel-104 --- source4/torture/unix/unix_info2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4') 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; } -- cgit