Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

Location:
vendor/current/source4/librpc/tests
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/librpc/tests/binding_string.c

    r414 r740  
    2525#include "librpc/rpc/dcerpc_proto.h"
    2626#include "torture/torture.h"
     27#include "lib/util/util_net.h"
    2728
    2829static bool test_BindingString(struct torture_context *tctx,
     
    128129        torture_assert_ntstatus_ok(tctx, dcerpc_parse_binding(tctx,
    129130                "308FB580-1EB2-11CA-923B-08002B1075A7@ncacn_ip_tcp:$SERVER", &b), "parse");
     131        torture_assert_ntstatus_ok(tctx, dcerpc_parse_binding(tctx, "ncacn_ip_tcp:$SERVER[,sign,localaddress=192.168.1.1]", &b), "parse");
     132        torture_assert(tctx, b->transport == NCACN_IP_TCP, "ncacn_ip_tcp expected");
     133        torture_assert(tctx, b->flags == (DCERPC_SIGN | DCERPC_LOCALADDRESS), "sign flag");
     134        torture_assert_str_equal(tctx, b->localaddress, "192.168.1.1", "localaddress");
     135        torture_assert_str_equal(tctx, "ncacn_ip_tcp:$SERVER[,sign,localaddress=192.168.1.1]",
     136                                 dcerpc_binding_string(tctx, b), "back to string");
    130137
    131138        return true;
     
    156163{
    157164        int i;
    158         struct torture_suite *suite = torture_suite_create(mem_ctx, "BINDING");
     165        struct torture_suite *suite = torture_suite_create(mem_ctx, "binding");
    159166
    160167        for (i = 0; i < ARRAY_SIZE(test_strings); i++) {
Note: See TracChangeset for help on using the changeset viewer.