r8773: fixed another dependency on directory ordering in RAW-SEARCH
authorAndrew Tridgell <tridge@samba.org>
Tue, 26 Jul 2005 04:47:16 +0000 (04:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:30:03 +0000 (13:30 -0500)
Thanks to andrew bartlett for helping to track this down (his was the
only system that hit this)

source/torture/raw/search.c

index ee61f605beb7e59bb344586cc57450f4ccd0bfc8..d1ea290c62fa7fde6c691f18df6f210abff95eda 100644 (file)
@@ -799,6 +799,8 @@ static BOOL test_modify_search(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
        CHECK_STATUS(status, NT_STATUS_OK);
        CHECK_VALUE(result.count, 2);
 
+       result.count = 0;
+
        printf("Changing attributes and deleting\n");
        smbcli_open(cli->tree, BASEDIR "\\T003-03.txt.2", O_CREAT|O_RDWR, DENY_NONE);
        smbcli_open(cli->tree, BASEDIR "\\T013-13.txt.2", O_CREAT|O_RDWR, DENY_NONE);
@@ -824,7 +826,7 @@ static BOOL test_modify_search(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
        status = smb_raw_search_next(cli->tree, mem_ctx,
                                     &io2, &result, multiple_search_callback);
        CHECK_STATUS(status, NT_STATUS_OK);
-       CHECK_VALUE(result.count, 22);
+       CHECK_VALUE(result.count, 20);
 
        ret &= check_result(&result, "t009-9.txt", True, FILE_ATTRIBUTE_ARCHIVE);
        ret &= check_result(&result, "t014-14.txt", False, 0);