From 4e20a6f83b981ae0948ce1b9ec0a39162b38b512 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 3 Dec 2009 22:05:35 +0100 Subject: s4-smbtorture: call test_EnumPrinterDrivers with architecture in RPC-SPOOLSS. Guenther --- source4/torture/rpc/spoolss.c | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index bd5c4555bd..1de3266f2b 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -309,19 +309,15 @@ static bool test_GetPrinterDriverDirectory(struct torture_context *tctx, static bool test_EnumPrinterDrivers(struct torture_context *tctx, struct dcerpc_pipe *p, - struct test_spoolss_context *ctx) + struct test_spoolss_context *ctx, + const char *architecture) { NTSTATUS status; struct spoolss_EnumPrinterDrivers r; uint16_t levels[] = { 1, 2, 3, 4, 5, 6 }; - int i, j, a; - const char *architectures[] = { - SPOOLSS_ARCHITECTURE_NT_X86, - SPOOLSS_ARCHITECTURE_ALL - }; + int i, j; 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"); } @@ -388,11 +373,6 @@ static bool test_EnumPrinterDrivers(struct torture_context *tctx, for (i=0;idriver_count[level];j++) { union spoolss_DriverInfo *cur = &ctx->drivers[level][j]; union spoolss_DriverInfo *ref = &ctx->drivers[6][j]; @@ -3200,7 +3180,8 @@ bool torture_rpc_spoolss(struct torture_context *torture) ret &= test_EnumPorts(torture, p, ctx); ret &= test_GetPrinterDriverDirectory(torture, p, ctx); ret &= test_GetPrintProcessorDirectory(torture, p, ctx); - ret &= test_EnumPrinterDrivers(torture, p, ctx); + ret &= test_EnumPrinterDrivers(torture, p, ctx, SPOOLSS_ARCHITECTURE_NT_X86); + ret &= test_EnumPrinterDrivers(torture, p, ctx, SPOOLSS_ARCHITECTURE_ALL); ret &= test_EnumMonitors(torture, p, ctx); ret &= test_EnumPrintProcessors(torture, p, ctx); ret &= test_EnumPrintProcDataTypes(torture, p, ctx); -- cgit