mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:torture:raw:notify: improve the CHECK_WSTR() macro
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
17ce9f428c
commit
1b305c8a35
@ -29,11 +29,10 @@
|
||||
|
||||
#define CHECK_WSTR(tctx, field, value, flags) \
|
||||
do { \
|
||||
if (!field.s || strcmp(field.s, value) || \
|
||||
wire_bad_flags(&field, flags, cli->transport)) { \
|
||||
torture_result(tctx, TORTURE_FAIL, \
|
||||
"(%d) %s [%s] != %s\n", __LINE__, #field, field.s, value); \
|
||||
} \
|
||||
torture_assert_str_equal(tctx, field.s, value, "values don't match"); \
|
||||
torture_assert(tctx, \
|
||||
!wire_bad_flags(&field, STR_UNICODE, cli->transport), \
|
||||
"wire_bad_flags"); \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user