summaryrefslogtreecommitdiff
path: root/source4/build/pidl/tests/ndr_alloc.pl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-07-09 15:56:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:28 -0500
commitb98373d574f43fb5d088a59acf1c81ea0b311977 (patch)
tree0b9f8cce2c87bd792abc6a5bce911e0f3fb66072 /source4/build/pidl/tests/ndr_alloc.pl
parentfa1445f4bc962efb3e639d3a4e345b1db14155b7 (diff)
downloadsamba-b98373d574f43fb5d088a59acf1c81ea0b311977.tar.gz
samba-b98373d574f43fb5d088a59acf1c81ea0b311977.tar.bz2
samba-b98373d574f43fb5d088a59acf1c81ea0b311977.zip
r8265: Fixes to the pidl test suite.
(This used to be commit 1235333afbfab643ea35e9b43f6142da3f6a41d7)
Diffstat (limited to 'source4/build/pidl/tests/ndr_alloc.pl')
-rwxr-xr-xsource4/build/pidl/tests/ndr_alloc.pl16
1 files changed, 7 insertions, 9 deletions
diff --git a/source4/build/pidl/tests/ndr_alloc.pl b/source4/build/pidl/tests/ndr_alloc.pl
index f0f366a947..4f6eddbfb9 100755
--- a/source4/build/pidl/tests/ndr_alloc.pl
+++ b/source4/build/pidl/tests/ndr_alloc.pl
@@ -3,18 +3,16 @@
# (C) 2005 Jelmer Vernooij. Published under the GNU GPL
use strict;
-use FindBin qw($RealBin);
-use lib "$RealBin/../..";
-use pidl::test;
+use Parse::Pidl::Test;
-my %settings = Test::GetSettings(@ARGV);
+my %settings = Parse::Pidl::Test::GetSettings(@ARGV);
$settings{'IDL-Arguments'} = ['--quiet', '--parse', '--parser=ndr_test.c', '--header=ndr_test.h'];
$settings{'IncludeFiles'} = ['ndr_test.h'];
$settings{'ExtraFiles'} = ['ndr_test.c'];
# Check that an outgoing scalar pointer is allocated correctly
-Test::test_idl("alloc-scalar", \%settings,
+Parse::Pidl::Test::test_idl("alloc-scalar", \%settings,
'
typedef struct {
uint8 *x;
@@ -39,7 +37,7 @@ Test::test_idl("alloc-scalar", \%settings,
);
# Check that an outgoing buffer pointer is allocated correctly
-Test::test_idl("alloc-buffer", \%settings,
+Parse::Pidl::Test::test_idl("alloc-buffer", \%settings,
'
typedef struct {
uint8 data;
@@ -68,7 +66,7 @@ Test::test_idl("alloc-buffer", \%settings,
);
# Check that ref pointers aren't allocated by default
-Test::test_idl("ref-noalloc-null", \%settings,
+Parse::Pidl::Test::test_idl("ref-noalloc-null", \%settings,
'
[public] void TestAlloc([in,ref] uint8 *t);
','
@@ -84,7 +82,7 @@ Test::test_idl("ref-noalloc-null", \%settings,
);
# Check that ref pointers aren't allocated by default
-Test::test_idl("ref-noalloc", \%settings,
+Parse::Pidl::Test::test_idl("ref-noalloc", \%settings,
'
[public] void TestAlloc([in,ref] uint8 *t);
','
@@ -104,7 +102,7 @@ Test::test_idl("ref-noalloc", \%settings,
);
# Check that an outgoing ref pointer is allocated correctly
-Test::test_idl("ref-alloc", \%settings,
+Parse::Pidl::Test::test_idl("ref-alloc", \%settings,
'
[public] void TestAlloc([in,ref] uint8 *t);
','