diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-11-02 17:38:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:21 -0500 |
commit | 3c4cd186ead24923a6e43f6bb14e3f3bd597a950 (patch) | |
tree | ef8502a5041cad7bc88973f7cdd3a8622d1881ac /source4/torture/rpc/remact.c | |
parent | 7573366629ce719471729587b918ccff71f5413d (diff) | |
download | samba-3c4cd186ead24923a6e43f6bb14e3f3bd597a950.tar.gz samba-3c4cd186ead24923a6e43f6bb14e3f3bd597a950.tar.xz samba-3c4cd186ead24923a6e43f6bb14e3f3bd597a950.zip |
r3489: Add a couple more DCOM tests (Both OxidResolver and RemoteActivation are
completely covered now)
(This used to be commit 06048d0dac60ae04a677786c0bd3df4f516d8034)
Diffstat (limited to 'source4/torture/rpc/remact.c')
-rw-r--r-- | source4/torture/rpc/remact.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/source4/torture/rpc/remact.c b/source4/torture/rpc/remact.c index 38d80e1bea6..b28be9222fd 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; } |