summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-20 21:29:26 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-20 15:36:47 +0200
commit84d6e09b954548d90d996f3ef6ce89edcbef3c24 (patch)
tree17368693920dce8f97a9c5510008d8ec953b634b /source4
parent74a4c40d4f4bd092d4a71d273f45aab39a8b1cb0 (diff)
downloadsamba-84d6e09b954548d90d996f3ef6ce89edcbef3c24.tar.gz
samba-84d6e09b954548d90d996f3ef6ce89edcbef3c24.tar.bz2
samba-84d6e09b954548d90d996f3ef6ce89edcbef3c24.zip
s4-torture: Use torture_fail() in the unix.unix_info2 test
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Aug 20 15:36:48 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/unix/unix_info2.c5
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;
}