3 # (C) 2005 Jelmer Vernooij <jelmer@samba.org>
4 # Published under the GNU General Public License
8 use Test
::More tests
=> 8;
9 use FindBin
qw($RealBin);
11 use Util qw(test_samba4_ndr);
16 '[public] void Test([in] uint8 x[10]);',
19 uint8_t data[] = {1,2,3,4,5,6,7,8,9,10};
27 ndr = ndr_pull_init_blob(&b, mem_ctx, NULL);
29 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_pull_Test(ndr, NDR_IN, &r)))
32 if (ndr->offset != 10)
35 for (i = 0; i < 10; i++) {
36 if (r.in.x[i] != i+1) return 3;