Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/pidl/tests/ndr.pl

    r414 r745  
    2323        'LINE' => 42 };
    2424
    25 is_deeply(GetElementLevelTable($e, "unique"), [
     25is_deeply(GetElementLevelTable($e, "unique", 0), [
    2626        {
    2727                'IS_DEFERRED' => 0,
     
    3434]);
    3535
    36 my $ne = ParseElement($e, "unique");
     36my $ne = ParseElement($e, "unique", 0);
    3737is($ne->{ORIGINAL}, $e);
    3838is($ne->{NAME}, "v");
     
    6161        'LINE' => 42 };
    6262
    63 is_deeply(GetElementLevelTable($e, "unique"), [
     63is_deeply(GetElementLevelTable($e, "unique", 0), [
    6464        {
    6565                LEVEL_INDEX => 0,
     
    9191        'LINE' => 42 };
    9292
    93 is_deeply(GetElementLevelTable($e, "unique"), [
     93is_deeply(GetElementLevelTable($e, "unique", 0), [
    9494        {
    9595                LEVEL_INDEX => 0,
     
    129129        'LINE' => 42 };
    130130
    131 is_deeply(GetElementLevelTable($e, "unique"), [
     131is_deeply(GetElementLevelTable($e, "unique", 0), [
    132132        {
    133133                LEVEL_INDEX => 0,
     
    159159        'LINE' => 42 };
    160160
    161 is_deeply(GetElementLevelTable($e, "unique"), [
     161is_deeply(GetElementLevelTable($e, "unique", 0), [
    162162        {
    163163                LEVEL_INDEX => 0,
     
    205205        'LINE' => 42 };
    206206
    207 is_deeply(GetElementLevelTable($e, "ref"), [
     207is_deeply(GetElementLevelTable($e, "ref", 0), [
    208208        {
    209209                LEVEL_INDEX => 0,
     
    251251        'LINE' => 42 };
    252252
    253 is_deeply(GetElementLevelTable($e, "unique"), [
     253is_deeply(GetElementLevelTable($e, "unique", 0), [
    254254        {
    255255                LEVEL_INDEX => 0,
     
    281281        'LINE' => 42 };
    282282
    283 is_deeply(GetElementLevelTable($e, "unique"), [
     283is_deeply(GetElementLevelTable($e, "unique", 0), [
    284284        {
    285285                LEVEL_INDEX => 0,
     
    327327        'LINE' => 42 };
    328328
    329 is_deeply(GetElementLevelTable($e, "unique"), [
     329is_deeply(GetElementLevelTable($e, "unique", 0), [
    330330        {
    331331                LEVEL_INDEX => 0,
     
    373373        'LINE' => 42 };
    374374
    375 is_deeply(GetElementLevelTable($e, "ref"), [
     375is_deeply(GetElementLevelTable($e, "ref", 0), [
    376376        {
    377377                LEVEL_INDEX => 0,
     
    419419        'LINE' => 42 };
    420420
    421 is_deeply(GetElementLevelTable($e, "ref"), [
     421is_deeply(GetElementLevelTable($e, "ref", 0), [
    422422        {
    423423                LEVEL_INDEX => 0,
     
    464464        'LINE' => 42 };
    465465
    466 $ne = ParseElement($e, undef);
     466$ne = ParseElement($e, undef, 0);
    467467is($ne->{REPRESENTATION_TYPE}, "bar");
    468468
     
    477477        'LINE' => 42 };
    478478
    479 $ne = ParseElement($e, undef);
     479$ne = ParseElement($e, undef, 0);
    480480is($ne->{REPRESENTATION_TYPE}, "uint8");
    481481
     
    522522        ALIGN => undef
    523523};
    524 is_deeply(ParseType($t->{ORIGINAL}, "ref"), $t);
     524is_deeply(ParseType($t->{ORIGINAL}, "ref", 0), $t);
    525525
    526526$t = {
     
    531531        PROPERTIES => undef,
    532532        HAS_DEFAULT => 0,
     533        IS_MS_UNION => 0,
    533534        ORIGINAL => {
    534535                TYPE => "UNION",
    535536                NAME => "foo"
    536         }
     537        },
     538        ALIGN => undef
    537539};
    538 is_deeply(ParseType($t->{ORIGINAL}, "ref"), $t);
     540is_deeply(ParseType($t->{ORIGINAL}, "ref", 0), $t);
    539541
    540542ok(not can_contain_deferred("uint32"));
     
    553555                ELEMENTS => [ { TYPE => "someunknowntype" } ]}));
    554556# Make sure the elements for a enum without body aren't filled in
    555 ok(not defined(ParseType({TYPE => "ENUM", NAME => "foo" }, "ref")->{ELEMENTS}));
     557ok(not defined(ParseType({TYPE => "ENUM", NAME => "foo" }, "ref", 0)->{ELEMENTS}));
    556558# Make sure the elements for a bitmap without body aren't filled in
    557 ok(not defined(ParseType({TYPE => "BITMAP", NAME => "foo" }, "ref")->{ELEMENTS}));
     559ok(not defined(ParseType({TYPE => "BITMAP", NAME => "foo" }, "ref", 0)->{ELEMENTS}));
    558560# Make sure the elements for a union without body aren't filled in
    559 ok(not defined(ParseType({TYPE => "UNION", NAME => "foo" }, "ref")->{ELEMENTS}));
     561ok(not defined(ParseType({TYPE => "UNION", NAME => "foo" }, "ref", 0)->{ELEMENTS}));
Note: See TracChangeset for help on using the changeset viewer.