From 1692b2e571d4c692eae020522d298b6fca3f1804 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 18 Nov 2005 09:51:13 +0000 Subject: r11776: no need to call out to SMB to setup test files for SMB2 any more (This used to be commit dae70c5baed7d5613d793dca15dda3007c1a690a) --- source4/torture/smb2/getinfo.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'source4/torture/smb2/getinfo.c') diff --git a/source4/torture/smb2/getinfo.c b/source4/torture/smb2/getinfo.c index 327ca8a12b5..b8e61ebe344 100644 --- a/source4/torture/smb2/getinfo.c +++ b/source4/torture/smb2/getinfo.c @@ -156,15 +156,22 @@ BOOL torture_smb2_getinfo(void) TALLOC_CTX *mem_ctx = talloc_new(NULL); struct smb2_tree *tree; BOOL ret = True; + NTSTATUS status; if (!torture_smb2_connection(mem_ctx, &tree)) { return False; } - torture_setup_complex_file(FNAME); - torture_setup_complex_file(FNAME ":streamtwo"); - torture_setup_complex_dir(DNAME); - torture_setup_complex_file(DNAME ":streamtwo"); + status = torture_setup_complex_file(tree, FNAME); + if (!NT_STATUS_IS_OK(status)) { + return False; + } + torture_setup_complex_file(tree, FNAME ":streamtwo"); + status = torture_setup_complex_dir(tree, DNAME); + if (!NT_STATUS_IS_OK(status)) { + return False; + } + torture_setup_complex_file(tree, DNAME ":streamtwo"); ret &= torture_smb2_fileinfo(tree); ret &= torture_smb2_fsinfo(tree); -- cgit v1.2.1