summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorroot <root@google.com>2008-09-30 12:44:24 -0700
committerroot <root@google.com>2008-09-30 12:44:24 -0700
commit687ce0b60a3913b0f2eca2365a5ab56e78523ab5 (patch)
tree75d1ce3b0dd25c272b01549f6527478cea297411 /source4/torture/raw
parenta238f17e2785da4f11411c6a4dd20fdcb3c349b6 (diff)
downloadsamba-687ce0b60a3913b0f2eca2365a5ab56e78523ab5.tar.gz
samba-687ce0b60a3913b0f2eca2365a5ab56e78523ab5.tar.bz2
samba-687ce0b60a3913b0f2eca2365a5ab56e78523ab5.zip
Use a getatr instead to make things cleaner.
Jeremy.
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/notify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c
index 14ee23158a..d7541b7c71 100644
--- a/source4/torture/raw/notify.c
+++ b/source4/torture/raw/notify.c
@@ -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",;,