summaryrefslogtreecommitdiff
path: root/source4/torture/basic/disconnect.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-18 15:43:31 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-05-18 09:35:13 +0200
commit45082a88c7aaaa928ca36003ade071aafe4de54d (patch)
tree2800e5aaff2da77f5156e12a8bba5e765e794e35 /source4/torture/basic/disconnect.c
parent8c52d1b8ac7d56eb728e4cc4ed2a560365d374b5 (diff)
downloadsamba-45082a88c7aaaa928ca36003ade071aafe4de54d.tar.gz
samba-45082a88c7aaaa928ca36003ade071aafe4de54d.tar.bz2
samba-45082a88c7aaaa928ca36003ade071aafe4de54d.zip
s4-torture: Improve torture test boilerplate, use torture_assert()
This ensures that if this fails, it is reported as a subunit error correctly. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri May 18 09:35:13 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/torture/basic/disconnect.c')
-rw-r--r--source4/torture/basic/disconnect.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/basic/disconnect.c b/source4/torture/basic/disconnect.c
index 17fbc61d2f..7fb87d81fc 100644
--- a/source4/torture/basic/disconnect.c
+++ b/source4/torture/basic/disconnect.c
@@ -151,9 +151,7 @@ bool torture_disconnect(struct torture_context *torture)
return false;
}
- if (!torture_setup_dir(cli, BASEDIR)) {
- return false;
- }
+ torture_assert(torture, torture_setup_dir(cli, BASEDIR), "Failed to setup up test directory: " BASEDIR);
for (i=0;i<torture_numops;i++) {
ret &= test_disconnect_lock(cli, mem_ctx);