]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Use a getatr instead to make things cleaner.
authorroot <root@google.com>
Tue, 30 Sep 2008 19:44:24 +0000 (12:44 -0700)
committerroot <root@google.com>
Tue, 30 Sep 2008 19:44:24 +0000 (12:44 -0700)
Jeremy.

source4/torture/raw/notify.c

index 14ee23158a72130a14ceb9c98a484a0538897176..d7541b7c7132c689cab2876e1904b5f590c71b1c 100644 (file)
@@ -584,7 +584,8 @@ static bool test_notify_mask(struct smbcli_state *cli, struct torture_context *t
        notify.nttrans.in.recursive = true;
 
 #define NOTIFY_MASK_TEST(test_name, setup, op, cleanup, Action, expected, nchanges) \
-       smbcli_unlink(cli->tree, test_name); \
+       do { \
+       smbcli_getatr(cli->tree, test_name, NULL, NULL, NULL); \
        do { for (mask=i=0;i<32;i++) { \
                struct smbcli_request *req; \
                status = smb_raw_open(cli->tree, tctx, &io); \
@@ -641,7 +642,8 @@ static bool test_notify_mask(struct smbcli_state *cli, struct torture_context *t
                               mask, expected); \
                } \
        } \
-       } while (0)
+       } while (0); \
+       } while (0);
 
        printf("testing mkdir\n");
        NOTIFY_MASK_TEST("testing mkdir",;,