1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r22813: improve error messages in RAW-NOTIFY test

(This used to be commit f5b2011db9)
This commit is contained in:
Andrew Tridgell 2007-05-12 07:44:09 +00:00 committed by Gerald (Jerry) Carter
parent 7e14a25dc6
commit 5c0963acc3

View File

@ -489,14 +489,27 @@ static BOOL test_notify_mask(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
((expected) & FILE_NOTIFY_CHANGE_ATTRIBUTES) && \
Action == NOTIFY_ACTION_OLD_NAME) { \
printf("(rename file special handling OK)\n"); \
} else if (nchanges != notify.nttrans.out.num_changes || \
notify.nttrans.out.changes[0].action != Action || \
strcmp(notify.nttrans.out.changes[0].name.s, "tname1") != 0) { \
printf("ERROR: nchanges=%d action=%d filter=0x%08x\n", \
} else if (nchanges != notify.nttrans.out.num_changes) { \
printf("ERROR: nchanges=%d expected=%d action=%d filter=0x%08x\n", \
notify.nttrans.out.num_changes, \
nchanges, \
notify.nttrans.out.changes[0].action, \
notify.nttrans.in.completion_filter); \
ret = False; \
} else if (notify.nttrans.out.changes[0].action != Action) { \
printf("ERROR: nchanges=%d action=%d expectedAction=%d filter=0x%08x\n", \
notify.nttrans.out.num_changes, \
notify.nttrans.out.changes[0].action, \
Action, \
notify.nttrans.in.completion_filter); \
ret = False; \
} else if (strcmp(notify.nttrans.out.changes[0].name.s, "tname1") != 0) { \
printf("ERROR: nchanges=%d action=%d filter=0x%08x name=%s\n", \
notify.nttrans.out.num_changes, \
notify.nttrans.out.changes[0].action, \
notify.nttrans.in.completion_filter, \
notify.nttrans.out.changes[0].name.s); \
ret = False; \
} \
mask |= (1<<i); \
} \