From 991588e70cf717fb1e9267defb9b14e949a70230 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 26 Oct 2004 11:10:02 +0000 Subject: r3259: expanded the RAW-SEARCH test some more (This used to be commit cc58d249f973397bf800c9b56a5d4ab30fcda2b4) --- source4/torture/raw/search.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c index 39dd721a76..56e3d4dc15 100644 --- a/source4/torture/raw/search.c +++ b/source4/torture/raw/search.c @@ -662,7 +662,7 @@ static BOOL test_many_files(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) QSORT_CAST search_old_compare); } - for (i=0;itree, fnum); } - printf("pulling the first 2 files\n"); + printf("pulling the first file\n"); ZERO_STRUCT(result); result.mem_ctx = talloc(mem_ctx, 0); @@ -777,6 +777,7 @@ static BOOL test_modify_search(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) CHECK_STATUS(status, NT_STATUS_OK); CHECK_VALUE(result.count, 1); + printf("pulling the second file\n"); io2.generic.level = RAW_SEARCH_BOTH_DIRECTORY_INFO; io2.t2fnext.in.handle = io.t2ffirst.out.handle; io2.t2fnext.in.max_count = 1; @@ -801,6 +802,7 @@ static BOOL test_modify_search(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) torture_set_file_attribute(cli->tree, BASEDIR "\\T015-15.txt", FILE_ATTRIBUTE_HIDDEN); torture_set_file_attribute(cli->tree, BASEDIR "\\T016-16.txt", FILE_ATTRIBUTE_NORMAL); torture_set_file_attribute(cli->tree, BASEDIR "\\T017-17.txt", FILE_ATTRIBUTE_SYSTEM); + torture_set_file_attribute(cli->tree, BASEDIR "\\T018-18.txt", 0); sfinfo.generic.level = RAW_SFILEINFO_DISPOSITION_INFORMATION; sfinfo.generic.file.fnum = fnum; sfinfo.disposition_info.in.delete_on_close = 1; -- cgit