summaryrefslogtreecommitdiff
path: root/source4/pidl/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-24 12:40:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:09 -0500
commit5d9ea9170d2e0fd816285bd460de05f800ce26e8 (patch)
tree9f04b7c484217473abeece2f0039e44eb7b9b2cd /source4/pidl/tests
parent6ba19b57290d7a625e0939563160eec0c419a91a (diff)
downloadsamba-5d9ea9170d2e0fd816285bd460de05f800ce26e8.tar.gz
samba-5d9ea9170d2e0fd816285bd460de05f800ce26e8.tar.bz2
samba-5d9ea9170d2e0fd816285bd460de05f800ce26e8.zip
r14690: Support represent_as in headers, enable represent_as() test (which works now)
(This used to be commit 31e847a0844a6871befc6091e813ae017cd6e4b4)
Diffstat (limited to 'source4/pidl/tests')
-rw-r--r--source4/pidl/tests/ndr_represent.pl14
1 files changed, 4 insertions, 10 deletions
diff --git a/source4/pidl/tests/ndr_represent.pl b/source4/pidl/tests/ndr_represent.pl
index e72fcf6a50..3c6b8cf6ab 100644
--- a/source4/pidl/tests/ndr_represent.pl
+++ b/source4/pidl/tests/ndr_represent.pl
@@ -9,12 +9,9 @@ use lib "$RealBin/../lib";
use lib "$RealBin";
use Util qw(test_samba4_ndr);
-SKIP: {
- skip "represent_as() is not finished yet", 8;
-
test_samba4_ndr('represent_as-simple',
'
- void bla([in,represent_as(foo)] uint8 x);
+ void bla([in,represent_as(uint32)] uint8 x);
',
'
uint8_t expected[] = { 0x0D };
@@ -25,25 +22,22 @@ test_samba4_ndr('represent_as-simple',
if (NT_STATUS_IS_ERR(ndr_pull_bla(ndr, NDR_SCALARS|NDR_BUFFERS, &r)))
return 1;
- if (r != 13)
+ if (r.in.x != 13)
return 2;
',
'
#include <core/nterr.h>
-typedef int foo;
-NTSTATUS ndr_uint8_to_foo(uint8_t from, foo *to)
+NTSTATUS ndr_uint8_to_uint32(uint8_t from, uint32_t *to)
{
*to = from;
return NT_STATUS_OK;
}
-NTSTATUS ndr_foo_to_uint8(foo from, uint8_t *to)
+NTSTATUS ndr_uint32_to_uint8(uint32_t from, uint8_t *to)
{
*to = from;
return NT_STATUS_OK;
}
'
);
-
-}