summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss_access.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/torture/rpc/spoolss_access.c b/source4/torture/rpc/spoolss_access.c
index b67d6e0bac..1dcc44dd0f 100644
--- a/source4/torture/rpc/spoolss_access.c
+++ b/source4/torture/rpc/spoolss_access.c
@@ -399,7 +399,7 @@ static bool test_EnumPrinters_findone(struct torture_context *tctx,
*printername = NULL;
r.in.flags = PRINTER_ENUM_LOCAL;
- r.in.server = talloc_asprintf(tctx, "\\\\%s", dcerpc_server_name(p));
+ r.in.server = NULL;
r.in.level = 1;
r.in.buffer = NULL;
r.in.offered = 0;
@@ -426,6 +426,13 @@ static bool test_EnumPrinters_findone(struct torture_context *tctx,
for (i=0; i < count; i++) {
+ if (count > 1 && strequal(info[i].info1.name, "Microsoft XPS Document Writer")) {
+ continue;
+ }
+
+ torture_comment(tctx, "testing printer: %s\n",
+ info[i].info1.name);
+
*printername = talloc_strdup(tctx, info[i].info1.name);
break;