diff options
author | Michael Adam <obnox@samba.org> | 2016-03-15 09:39:43 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-03-22 00:23:22 +0100 |
commit | 186cd708291641c507cda0c89cc9c24900634ed2 (patch) | |
tree | 324a2b6514b0b89c8909c03c57781adf770259ff | |
parent | 3e90abe6704a1af62ce22a6e62539a28a8abfe22 (diff) | |
download | samba-186cd708291641c507cda0c89cc9c24900634ed2.tar.gz |
torture:smb2: use assert, not warning in error case in durable-v2-open.reopen1a
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source4/torture/smb2/durable_v2_open.c | 10 |
1 files 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 |