s4-torture: add new torture_suite_add_ndr_pullpush_fn_test_flags().
authorGünther Deschner <gd@samba.org>
Fri, 26 Jun 2015 14:46:11 +0000 (16:46 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 3 Jul 2015 00:00:27 +0000 (02:00 +0200)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/ndr/ndr.h

index d3a6492b64eae20ee1d6ef133c6fb874ee76e794..b08383b43458c5f226f45e8d3e7073203225df6c 100644 (file)
@@ -79,6 +79,15 @@ _PUBLIC_ struct torture_test *_torture_suite_add_ndr_pull_inout_test(
                         NDR_SCALARS|NDR_BUFFERS, 0, \
                         (bool (*) (struct torture_context *, void *)) check_fn);
 
+#define torture_suite_add_ndr_pullpush_fn_test_flags(suite,name,data,flags,flags2,check_fn) \
+               _torture_suite_add_ndr_pullpush_test(suite, #name, \
+                        (ndr_pull_flags_fn_t)ndr_pull_ ## name, \
+                        (ndr_push_flags_fn_t)ndr_push_ ## name, \
+                        data_blob_const(data, sizeof(data)), \
+                        sizeof(struct name), \
+                        flags, flags2, \
+                        (bool (*) (struct torture_context *, void *)) check_fn);
+
 #define torture_suite_add_ndr_pull_io_test(suite,name,data_in,data_out,check_fn_out) \
                _torture_suite_add_ndr_pull_inout_test(suite, #name "_INOUT", \
                         (ndr_pull_flags_fn_t)ndr_pull_ ## name, \