Changeset 988 for vendor/current/pidl/tests
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- Location:
- vendor/current/pidl/tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/pidl/tests/Util.pm
r740 r988 119 119 my $outfile; 120 120 if (defined($test_data_prefix)) { 121 $outfile = "$test_data_prefix/test-$name"; 121 $outfile = "$test_data_prefix/test-$name"; 122 122 } else { 123 123 $outfile = "./test-$name"; -
vendor/current/pidl/tests/samba-ndr.pl
r740 r988 222 222 ALIGN => 4, 223 223 ELEMENTS => [ ]}, "ndr", "x"); 224 is($generator->{res}, "if (ndr_flags & NDR_SCALARS) { 224 is($generator->{res}, "NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags); 225 if (ndr_flags & NDR_SCALARS) { 225 226 NDR_CHECK(ndr_push_align(ndr, 4)); 226 227 NDR_CHECK(ndr_push_trailer_align(ndr, 4)); … … 246 247 SURROUNDING_ELEMENT => $e, 247 248 ELEMENTS => [ $e ]}, "ndr", "x"); 248 is($generator->{res}, "if (ndr_flags & NDR_SCALARS) { 249 is($generator->{res}, "NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags); 250 if (ndr_flags & NDR_SCALARS) { 249 251 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_string_array_size(ndr, x->el1))); 250 252 NDR_CHECK(ndr_push_align(ndr, 4)); -
vendor/current/pidl/tests/typelist.pl
r414 r988 53 53 54 54 is(1, hasType("foo")); 55 is(0, hasType("nonexist ant"));55 is(0, hasType("nonexistent")); 56 56 is(0, hasType({TYPE => "ENUM", NAME => "someUnknownType"})); 57 57 is(1, hasType({TYPE => "ENUM", NAME => "foo"})); … … 60 60 61 61 is(1, is_scalar("uint32")); 62 is(0, is_scalar("nonexist ant"));62 is(0, is_scalar("nonexistent")); 63 63 is(1, is_scalar({TYPE => "ENUM"})); 64 64 is(0, is_scalar({TYPE => "STRUCT"})); -
vendor/current/pidl/tests/wireshark-conf.pl
r414 r988 16 16 { 17 17 my $str = shift; 18 18 open(TMP, "+>", undef) or die("unable to open temp file"); 19 19 print TMP $str; 20 20 seek(TMP, 0, 0); -
vendor/current/pidl/tests/wireshark-ndr.pl
r414 r988 228 228 229 229 is($x->DumpHfList(), "\tstatic hf_register_info hf[] = { 230 { &hf_bla, 230 { &hf_bla, 231 231 { \"Bla\", \"bla.field\", FT_UINT32, BASE_DEC, NULL, 255, \"NULL\", HFILL }}, 232 232 };
Note:
See TracChangeset
for help on using the changeset viewer.