From 3c4cd186ead24923a6e43f6bb14e3f3bd597a950 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 2 Nov 2004 17:38:11 +0000 Subject: r3489: Add a couple more DCOM tests (Both OxidResolver and RemoteActivation are completely covered now) (This used to be commit 06048d0dac60ae04a677786c0bd3df4f516d8034) --- source4/torture/rpc/remact.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'source4/torture/rpc/remact.c') diff --git a/source4/torture/rpc/remact.c b/source4/torture/rpc/remact.c index 38d80e1bea..b28be9222f 100644 --- a/source4/torture/rpc/remact.c +++ b/source4/torture/rpc/remact.c @@ -62,6 +62,34 @@ static int test_RemoteActivation(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) return 0; } + if(!W_ERROR_IS_OK(r.out.results[0])) { + fprintf(stderr, "RemoteActivation: %s\n", win_errstr(r.out.results[0])); + return 0; + } + + r.in.Mode = MODE_GET_CLASS_OBJECT; + + status = dcerpc_RemoteActivation(p, mem_ctx, &r); + if(NT_STATUS_IS_ERR(status)) { + fprintf(stderr, "RemoteActivation(GetClassObject): %s\n", nt_errstr(status)); + return 0; + } + + if(!W_ERROR_IS_OK(r.out.result)) { + fprintf(stderr, "RemoteActivation(GetClassObject): %s\n", win_errstr(r.out.result)); + return 0; + } + + if(!W_ERROR_IS_OK(r.out.hr)) { + fprintf(stderr, "RemoteActivation(GetClassObject): %s\n", win_errstr(r.out.hr)); + return 0; + } + + if(!W_ERROR_IS_OK(r.out.results[0])) { + fprintf(stderr, "RemoteActivation: %s\n", win_errstr(r.out.results[0])); + return 0; + } + return 1; } -- cgit