s4:torture: cleanup after smb2 getinfo scan
authorGregor Beck <gbeck@sernet.de>
Fri, 2 Mar 2012 10:19:48 +0000 (11:19 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 6 Mar 2012 22:53:07 +0000 (23:53 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/torture/smb2/scan.c

index 3b132ab8a4f655c22af1f50a24e842d880f12b27..d0e95dbf8773bd0669fbf222379871a999857d3c 100644 (file)
@@ -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;
 }