From: Günther Deschner Date: Wed, 13 May 2009 13:35:25 +0000 (+0200) Subject: s4-smbtorture: also test for "all" architecture in enum driver tests in RPC-SPOOLSS. X-Git-Tag: tdb-1.1.5~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d11d4382b965b72532dcb797089a614aa774af7e;p=thirdparty%2Fsamba.git s4-smbtorture: also test for "all" architecture in enum driver tests in RPC-SPOOLSS. Guenther --- diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index bfe667240cd..464049405c7 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -304,9 +304,14 @@ static bool test_EnumPrinterDrivers(struct torture_context *tctx, NTSTATUS status; struct spoolss_EnumPrinterDrivers r; uint16_t levels[] = { 1, 2, 3, 4, 5, 6 }; - int i, j; + int i, j, a; + const char *architectures[] = { + SPOOLSS_ARCHITECTURE_NT_X86, + SPOOLSS_ARCHITECTURE_ALL + }; for (i=0;idriver_count[level] = count; ctx->drivers[level] = info; } + } for (i=1;idriver_count[level], ctx->driver_count[old_level], "EnumPrinterDrivers invalid value"); } for (i=0;idriver_count[level];j++) { union spoolss_DriverInfo *cur = &ctx->drivers[level][j]; union spoolss_DriverInfo *ref = &ctx->drivers[6][j]; @@ -513,7 +536,7 @@ static bool test_EnumPrintProcessors(struct torture_context *tctx, union spoolss_PrintProcessorInfo *info; r.in.servername = ""; - r.in.environment = "Windows NT x86"; + r.in.environment = SPOOLSS_ARCHITECTURE_NT_X86; r.in.level = level; r.in.buffer = NULL; r.in.offered = 0; @@ -1965,7 +1988,7 @@ static bool test_EnumPrinterDrivers_old(struct torture_context *tctx, union spoolss_DriverInfo *info; r.in.server = talloc_asprintf(tctx, "\\\\%s", dcerpc_server_name(p)); - r.in.environment = "Windows NT x86"; + r.in.environment = SPOOLSS_ARCHITECTURE_NT_X86; r.in.level = levels[i]; r.in.buffer = NULL; r.in.offered = 0;