From: Gregor Beck Date: Fri, 2 Mar 2012 10:19:48 +0000 (+0100) Subject: s4:torture: cleanup after smb2 getinfo scan X-Git-Tag: tdb-1.2.10~331 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b3ed652734482869bbe77d44db89f79440c3b3e;p=thirdparty%2Fsamba.git s4:torture: cleanup after smb2 getinfo scan Signed-off-by: Stefan Metzmacher --- diff --git a/source4/torture/smb2/scan.c b/source4/torture/smb2/scan.c index 3b132ab8a4f..d0e95dbf877 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; }