summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2012-03-02 11:19:48 +0100
committerStefan Metzmacher <metze@samba.org>2012-03-06 23:53:07 +0100
commit2b3ed652734482869bbe77d44db89f79440c3b3e (patch)
tree0fc1b44ea4121dc5f3a92b74d3f9f5c987ae5565 /source4/torture
parentcbe918d10645520d8e996af9a4652ce220ca2c91 (diff)
downloadsamba-2b3ed652734482869bbe77d44db89f79440c3b3e.tar.gz
samba-2b3ed652734482869bbe77d44db89f79440c3b3e.tar.bz2
samba-2b3ed652734482869bbe77d44db89f79440c3b3e.zip
s4:torture: cleanup after smb2 getinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/scan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/torture/smb2/scan.c b/source4/torture/smb2/scan.c
index 3b132ab8a4..d0e95dbf87 100644
--- a/source4/torture/smb2/scan.c
+++ b/source4/torture/smb2/scan.c
@@ -58,6 +58,7 @@ bool torture_smb2_getinfo_scan(struct torture_context *torture)
status = torture_setup_complex_dir(tree, DNAME);
if (!NT_STATUS_IS_OK(status)) {
printf("Failed to setup complex dir '%s'\n", DNAME);
+ smb2_util_unlink(tree, FNAME);
return false;
}
torture_setup_complex_file(tree, DNAME ":2ndstream");
@@ -96,6 +97,8 @@ bool torture_smb2_getinfo_scan(struct torture_context *torture)
}
}
+ smb2_util_unlink(tree, FNAME);
+ smb2_util_rmdir(tree, DNAME);
return true;
}