summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-12-17 16:34:47 +0100
committerGünther Deschner <gd@samba.org>2010-12-20 14:31:43 +0100
commit9dce43a809eae4b44bf1e2b301844a0753c037e9 (patch)
tree18681234a62bea222724460fa8caabcc0cc7fa77 /source4/torture
parent33a57db3a542c364eb82499e5765a2caef00af33 (diff)
downloadsamba-9dce43a809eae4b44bf1e2b301844a0753c037e9.tar.gz
samba-9dce43a809eae4b44bf1e2b301844a0753c037e9.tar.bz2
samba-9dce43a809eae4b44bf1e2b301844a0753c037e9.zip
s4-smbtorture: run the winreg tests also against an added driver.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Dec 20 14:31:43 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/spoolss.c19
1 files changed, 19 insertions, 0 deletions
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 {