summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-02-23 15:08:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:53 -0500
commit09879ff119838535a9c5daeb33f62c126b76fe25 (patch)
treedbc1083b403d8395bea30dd360689fd0dd3538df /source4/torture/rpc
parent6fbcb3534c03e84ada9bd1ebaff02a73e700db9e (diff)
downloadsamba-09879ff119838535a9c5daeb33f62c126b76fe25.tar.gz
samba-09879ff119838535a9c5daeb33f62c126b76fe25.tar.bz2
samba-09879ff119838535a9c5daeb33f62c126b76fe25.zip
r5516: NT4 doesn't support GetPrinterDataEx()
metze (This used to be commit 81f4afcbfa296f54634ba2a88e9ef3e966405fc3)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index c7a0a1e066..18b9e23b75 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -482,8 +482,12 @@ static BOOL test_GetPrinterDataEx(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
printf("Testing GetPrinterDataEx\n");
status = dcerpc_spoolss_GetPrinterDataEx(p, mem_ctx, &r);
-
if (!NT_STATUS_IS_OK(status)) {
+ if (NT_STATUS_EQUAL(status,NT_STATUS_NET_WRITE_FAULT) &&
+ p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) {
+ printf("GetPrinterDataEx not supported by server\n");
+ return True;
+ }
printf("GetPrinterDataEx failed - %s\n", nt_errstr(status));
return False;
}