s4:torture/rpc/alter_context: check for NT_STATUS_RPC_PROTOCOL_ERROR instead of DCERP...
authorStefan Metzmacher <metze@samba.org>
Sat, 10 Apr 2010 09:04:04 +0000 (11:04 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Apr 2010 07:34:05 +0000 (09:34 +0200)
metze

source4/torture/rpc/alter_context.c

index 015e3a25fda79f6f40ac0d896701c8605e821ecd..cbfe034d06dd8f526bd01397fb52ae145a28983c 100644 (file)
@@ -87,9 +87,7 @@ bool torture_rpc_alter_context(struct torture_context *torture)
 
        torture_comment(torture, "Testing change of primary context\n");
        status = dcerpc_alter_context(p, torture, &p2->syntax, &p2->transfer_syntax);
-       if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
-               torture_assert_int_equal(torture, p->last_fault_code, DCERPC_NCA_S_PROTO_ERROR,
-                                        "dcerpc_alter_context should generate a proto error");
+       if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROTOCOL_ERROR)) {
 
                ret &= test_lsa_OpenPolicy2_ex(p->binding_handle, torture, &handle,
                                               NT_STATUS_PIPE_DISCONNECTED);