From 9dce43a809eae4b44bf1e2b301844a0753c037e9 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 17 Dec 2010 16:34:47 +0100 Subject: s4-smbtorture: run the winreg tests also against an added driver. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Mon Dec 20 14:31:43 CET 2010 on sn-devel-104 --- source4/torture/rpc/spoolss.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 114b3e1493..630694d01a 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -8628,6 +8628,25 @@ static bool test_PrinterDriver_args(struct torture_context *tctx, return ret; } + { + struct dcerpc_pipe *p2; + struct policy_handle hive_handle; + struct dcerpc_binding_handle *b2; + + torture_assert_ntstatus_ok(tctx, + torture_rpc_connection(tctx, &p2, &ndr_table_winreg), + "could not open winreg pipe"); + b2 = p2->binding_handle; + + torture_assert(tctx, test_winreg_OpenHKLM(tctx, b2, &hive_handle), ""); + + ret = test_GetDriverInfo_winreg(tctx, b, NULL, NULL, r->driver_name, r->architecture, r->version, b2, &hive_handle, server_name); + + test_winreg_CloseKey(tctx, b2, &hive_handle); + + talloc_free(p2); + } + if (ex) { return test_DeletePrinterDriverEx(tctx, b, server_name, r->driver_name, r->architecture, delete_flags, r->version); } else { -- cgit