From: root Date: Tue, 30 Sep 2008 19:44:24 +0000 (-0700) Subject: Use a getatr instead to make things cleaner. X-Git-Tag: samba-4.0.0alpha6~769^2~228^2~91^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=687ce0b60a3913b0f2eca2365a5ab56e78523ab5;p=thirdparty%2Fsamba.git Use a getatr instead to make things cleaner. Jeremy. --- diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c index 14ee23158a7..d7541b7c713 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",;,