From 967a0cdbeba9211044ddc36f7e729a83bafe7c31 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 26 Mar 2015 19:22:08 +0100 Subject: s4:torture:raw:notify: treat torture_open_connection calls with torture_assert Signed-off-by: Michael Adam Reviewed-by: Guenther Deschner --- source4/torture/raw/notify.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'source4/torture/raw') diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c index 26f7094b280..80de189521e 100644 --- a/source4/torture/raw/notify.c +++ b/source4/torture/raw/notify.c @@ -1023,9 +1023,8 @@ static bool test_notify_tdis(struct torture_context *tctx, torture_assert(tctx, torture_setup_dir(cli1, BASEDIR), "Failed to setup up test directory: " BASEDIR); - if (!torture_open_connection(&cli, tctx, 0)) { - return false; - } + torture_assert(tctx, torture_open_connection(&cli, tctx, 0), + "Failed to open connection."); /* get a handle on the directory @@ -1094,9 +1093,8 @@ static bool test_notify_exit(struct torture_context *tctx, torture_assert(tctx, torture_setup_dir(cli1, BASEDIR), "Failed to setup up test directory: " BASEDIR); - if (!torture_open_connection(&cli, tctx, 0)) { - return false; - } + torture_assert(tctx, torture_open_connection(&cli, tctx, 0), + "Failed to open connection."); /* get a handle on the directory @@ -1164,9 +1162,8 @@ static bool test_notify_ulogoff(struct torture_context *tctx, torture_assert(tctx, torture_setup_dir(cli1, BASEDIR), "Failed to setup up test directory: " BASEDIR); - if (!torture_open_connection(&cli, tctx, 0)) { - return false; - } + torture_assert(tctx, torture_open_connection(&cli, tctx, 0), + "Failed to open connection."); /* get a handle on the directory @@ -1241,9 +1238,8 @@ static bool test_notify_tcp_dis(struct torture_context *tctx, torture_assert(tctx, torture_setup_dir(cli1, BASEDIR), "Failed to setup up test directory: " BASEDIR); - if (!torture_open_connection(&cli, tctx, 0)) { - return false; - } + torture_assert(tctx, torture_open_connection(&cli, tctx, 0), + "Failed to open connection."); /* get a handle on the directory -- cgit v1.2.1