summaryrefslogtreecommitdiff
path: root/source4/torture/ui.h
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-03-05 22:26:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:16 -0500
commit754d416ea54e1e520aa035a759ec8e3975ab5354 (patch)
tree3aa47c28cb6765ac1992c58d4a1c14973d5e1ad4 /source4/torture/ui.h
parent804ac30704ddbedb3eb6decfa1e448e62ac914d3 (diff)
downloadsamba-754d416ea54e1e520aa035a759ec8e3975ab5354.tar.gz
samba-754d416ea54e1e520aa035a759ec8e3975ab5354.tar.bz2
samba-754d416ea54e1e520aa035a759ec8e3975ab5354.zip
r21710: Add client support for the UNIX_INFO2 info level in the QueryFile,
QueryPath and FindFirst calls. Add a new torture test to verify the server side. (This used to be commit 7f56da2d1fa0718e5282bb4aea7d9a63a62f0bc7)
Diffstat (limited to 'source4/torture/ui.h')
-rw-r--r--source4/torture/ui.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/ui.h b/source4/torture/ui.h
index 329462ba28..70b86b0424 100644
--- a/source4/torture/ui.h
+++ b/source4/torture/ui.h
@@ -245,6 +245,16 @@ void torture_result(struct torture_context *test,
} \
} while(0)
+#define torture_assert_u64_equal(torture_ctx,got,expected,cmt)\
+ do { uint64_t __got = (got), __expected = (expected); \
+ if (__got != __expected) { \
+ torture_result(torture_ctx, TORTURE_FAIL, \
+ __location__": "#got" was %llu, expected %llu: %s", \
+ (unsigned long long)__got, (unsigned long long)__expected, cmt); \
+ return false; \
+ } \
+ } while(0)
+
#define torture_assert_errno_equal(torture_ctx,expected,cmt)\
do { int __expected = (expected); \
if (errno != __expected) { \