Author: tridge
Date: 2004-10-26 11:10:02 +0000 (Tue, 26 Oct 2004)
New Revision: 3259

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/torture/raw&rev=3259&nolog=1

Log:
expanded the RAW-SEARCH test some more




Modified:
   branches/SAMBA_4_0/source/torture/raw/search.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/search.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/search.c      2004-10-26 09:52:00 UTC (rev 
3258)
+++ branches/SAMBA_4_0/source/torture/raw/search.c      2004-10-26 11:10:02 UTC (rev 
3259)
@@ -662,7 +662,7 @@
                              QSORT_CAST search_old_compare);
                }
 
-               for (i=0;i<num_files;i++) {
+               for (i=0;i<result.count;i++) {
                        const char *s;
                        if (search_types[t].level == RAW_SEARCH_BOTH_DIRECTORY_INFO) {
                                s = result.list[i].both_directory_info.name.s;
@@ -761,7 +761,7 @@
                smbcli_close(cli->tree, 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 @@
        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 @@
        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;

Reply via email to