From: Andrew Bartlett Date: Mon, 20 Aug 2012 11:29:26 +0000 (+1000) Subject: s4-torture: Use torture_fail() in the unix.unix_info2 test X-Git-Tag: samba-4.0.0beta7~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84d6e09b954548d90d996f3ef6ce89edcbef3c24;p=thirdparty%2Fsamba.git 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 --- diff --git a/source4/torture/unix/unix_info2.c b/source4/torture/unix/unix_info2.c index 4322d851e43..51e75047fb7 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; }