From 186cd708291641c507cda0c89cc9c24900634ed2 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 15 Mar 2016 09:39:43 +0100 Subject: [PATCH] torture:smb2: use assert, not warning in error case in durable-v2-open.reopen1a Signed-off-by: Michael Adam Reviewed-by: Jeremy Allison --- source4/torture/smb2/durable_v2_open.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/source4/torture/smb2/durable_v2_open.c b/source4/torture/smb2/durable_v2_open.c index f3ec344efcc..a80506acbdc 100644 --- a/source4/torture/smb2/durable_v2_open.c +++ b/source4/torture/smb2/durable_v2_open.c @@ -629,13 +629,9 @@ bool test_durable_v2_open_reopen1a(struct torture_context *tctx, previous_session_id = smb2cli_session_current_id(tree->session->smbXcli); - if (!torture_smb2_connection_ext(tctx, previous_session_id, - &options, &tree2)) - { - torture_warning(tctx, "couldn't reconnect, bailing\n"); - ret = false; - goto done; - } + ret = torture_smb2_connection_ext(tctx, previous_session_id, + &options, &tree2); + torture_assert_goto(tctx, ret, ret, done, "couldn't reconnect"); /* * check that this has deleted the old session -- 2.34.1