summaryrefslogtreecommitdiff
path: root/source4/torture/raw/chkpath.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/raw/chkpath.c
parent8c52d1b8ac7d56eb728e4cc4ed2a560365d374b5 (diff)
downloadsamba-45082a88c7aaaa928ca36003ade071aafe4de54d.tar.gz
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/raw/chkpath.c')
-rw-r--r--source4/torture/raw/chkpath.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/raw/chkpath.c b/source4/torture/raw/chkpath.c
index ed7b5b2917e..2afd7ea4784 100644
--- a/source4/torture/raw/chkpath.c
+++ b/source4/torture/raw/chkpath.c
@@ -354,9 +354,7 @@ bool torture_raw_chkpath(struct torture_context *torture,
bool ret = true;
int fnum;
- if (!torture_setup_dir(cli, BASEDIR)) {
- return false;
- }
+ torture_assert(torture, torture_setup_dir(cli, BASEDIR), "Failed to setup up test directory: " BASEDIR);
if (NT_STATUS_IS_ERR(smbcli_mkdir(cli->tree, BASEDIR "\\nt"))) {
printf("Failed to create " BASEDIR " - %s\n", smbcli_errstr(cli->tree));