s4:torture/rpc: fix altercontext test against windows
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Jan 2014 10:18:35 +0000 (11:18 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 24 Mar 2014 23:45:28 +0000 (00:45 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/rpc/alter_context.c

index 57f71b7819bbf3d38a60dc15b82a06e591ec3816..d14cabc3a09fe8acb0718d6f745e4fb8db6054a1 100644 (file)
@@ -85,7 +85,11 @@ bool torture_rpc_alter_context(struct torture_context *torture)
        if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROTOCOL_ERROR)) {
 
                ret &= test_lsa_OpenPolicy2_ex(p->binding_handle, torture, &handle,
-                                              NT_STATUS_PIPE_DISCONNECTED);
+                                              NT_STATUS_IO_DEVICE_ERROR);
+
+               torture_assert(torture, !dcerpc_binding_handle_is_connected(p->binding_handle),
+                              "dcerpc disonnected");
+
                return ret;
        }
        torture_assert_ntstatus_ok(torture, status, "dcerpc_alter_context failed");