summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2015-03-26 19:22:08 +0100
committerGünther Deschner <gd@samba.org>2015-03-30 13:41:26 +0200
commit967a0cdbeba9211044ddc36f7e729a83bafe7c31 (patch)
tree7ac1383413c20a0fb0cc9e27a4f8fa4b9cc76b5f /source4/torture/raw
parent47d75aa1e5caca41d1c7bd0ef217ae601ff461f6 (diff)
downloadsamba-967a0cdbeba9211044ddc36f7e729a83bafe7c31.tar.gz
s4:torture:raw:notify: treat torture_open_connection calls with torture_assert
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/notify.c20
1 files changed, 8 insertions, 12 deletions
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