svn commit: samba r19751 - in branches/SAMBA_4_0/source/pidl/tests:
.
jelmer at samba.org
jelmer at samba.org
Thu Nov 16 22:11:33 GMT 2006
Author: jelmer
Date: 2006-11-16 22:11:32 +0000 (Thu, 16 Nov 2006)
New Revision: 19751
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19751
Log:
Add some tests for parsing the "include", "import" and "importlib" statements.
Modified:
branches/SAMBA_4_0/source/pidl/tests/parse_idl.pl
Changeset:
Modified: branches/SAMBA_4_0/source/pidl/tests/parse_idl.pl
===================================================================
--- branches/SAMBA_4_0/source/pidl/tests/parse_idl.pl 2006-11-16 20:10:22 UTC (rev 19750)
+++ branches/SAMBA_4_0/source/pidl/tests/parse_idl.pl 2006-11-16 22:11:32 UTC (rev 19751)
@@ -4,7 +4,7 @@
# Published under the GNU General Public License
use strict;
-use Test::More tests => 51;
+use Test::More tests => 59;
use FindBin qw($RealBin);
use lib "$RealBin/../lib";
use Parse::Pidl::IDL;
@@ -80,3 +80,11 @@
testok "emptystructdecl", "interface test { struct x; };";
testok "emptyenumdecl", "interface test { enum x; };";
testok "emptytdstructdecl", "interface test { typedef struct x y; };";
+testok "import", "import \"foo.idl\";";
+testok "include", "include \"foo.h\";";
+testfail "import-noquotes", "import foo.idl;";
+testfail "include-noquotes", "include foo.idl;";
+testok "importlib", "importlib \"foo.idl\";";
+testfail "import-nosemicolon", "import \"foo.idl\"";
+testok "import-multiple", "import \"foo.idl\", \"bar.idl\";";
+testok "include-multiple", "include \"foo.idl\", \"bar.idl\";";
More information about the samba-cvs
mailing list