Rev 11397: 3 more tests. in file:///home/jelmer/bzr.samba/pidl-fixes/

Jelmer Vernooij jelmer at samba.org
Thu Feb 8 16:05:23 GMT 2007


At file:///home/jelmer/bzr.samba/pidl-fixes/

------------------------------------------------------------
revno: 11397
revision-id: jelmer at samba.org-20070208160510-qt1c7a40efk16ew0
parent: jelmer at samba.org-20070208154547-1iu4v5vre77r631u
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: pidl-fixes
timestamp: Thu 2007-02-08 17:05:10 +0100
message:
  3 more tests.
modified:
  source/pidl/tests/wireshark-conf.pl wiresharkconf.pl-20070208154028-socda2mp78zkog3t-1
=== modified file 'source/pidl/tests/wireshark-conf.pl'
--- a/source/pidl/tests/wireshark-conf.pl	2007-02-08 15:42:57 +0000
+++ b/source/pidl/tests/wireshark-conf.pl	2007-02-08 16:05:10 +0000
@@ -5,7 +5,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 17;
+use Test::More tests => 20;
 use FindBin qw($RealBin);
 use lib "$RealBin";
 use Util;
@@ -55,3 +55,8 @@
 
 is_deeply(parse_conf("FIELD_DESCRIPTION foo my description\n"),
 	{ fielddescription => { foo => { DESCRIPTION => "my", POS => { FILE => "nofile", LINE => 1}, USED => 0 }}});
+
+is_deeply(parse_conf("CODE START\ndata\nCODE END\n"), { override => "data\n" });
+is_deeply(parse_conf("CODE START\ndata\nmore data\nCODE END\n"), { override => "data\nmore data\n" });
+test_warnings("nofile:1: Unknown command `CODE'\n",
+	sub { parse_conf("CODE END\n"); } );



More information about the samba-cvs mailing list