From 64424bb1c3a1714371cf7dd9d2e0ff52777b7874 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 24 Nov 2010 10:57:09 +0100 Subject: s4-smbtorture: pick a better printer in RPC-SPOOLSS-ACCESS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Wed Nov 24 22:07:33 CET 2010 on sn-devel-104 --- source4/torture/rpc/spoolss_access.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/torture/rpc/spoolss_access.c b/source4/torture/rpc/spoolss_access.c index b67d6e0bace..1dcc44dd0f8 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; -- cgit