summaryrefslogtreecommitdiff
path: root/testprogs/win32/spoolss
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-01 20:56:36 +0100
committerGünther Deschner <gd@samba.org>2010-03-01 21:15:33 +0100
commitb797481b8dd99a6e67c69ea5ce4b1c6739c45666 (patch)
treea7f482cf6b1b984e9d6e9935b2e960cf271ef1af /testprogs/win32/spoolss
parent1b6f1e8c30808c50485b8fecf47e12b45a3ac31f (diff)
downloadsamba-b797481b8dd99a6e67c69ea5ce4b1c6739c45666.tar.gz
samba-b797481b8dd99a6e67c69ea5ce4b1c6739c45666.tar.bz2
samba-b797481b8dd99a6e67c69ea5ce4b1c6739c45666.zip
testprogs: add DeletePrinterKey test.
Guenther
Diffstat (limited to 'testprogs/win32/spoolss')
-rw-r--r--testprogs/win32/spoolss/spoolss.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/testprogs/win32/spoolss/spoolss.c b/testprogs/win32/spoolss/spoolss.c
index 698f024b11..13168f0c12 100644
--- a/testprogs/win32/spoolss/spoolss.c
+++ b/testprogs/win32/spoolss/spoolss.c
@@ -1267,6 +1267,29 @@ static BOOL test_DeletePrinterDataEx(struct torture_context *tctx,
/****************************************************************************
****************************************************************************/
+static BOOL test_DeletePrinterKey(struct torture_context *tctx,
+ LPSTR servername,
+ LPSTR keyname,
+ HANDLE handle)
+{
+ DWORD err = 0;
+ char tmp[1024];
+
+ torture_comment(tctx, "Testing DeletePrinterKey(%s)", keyname);
+
+ err = DeletePrinterKey(handle, keyname);
+ if (err) {
+ sprintf(tmp, "DeletePrinterKey(%s) failed on [%s], error: %s\n",
+ keyname, servername, errstr(err));
+ torture_fail(tctx, tmp);
+ }
+
+ return TRUE;
+}
+
+/****************************************************************************
+****************************************************************************/
+
static BOOL test_PrinterData(struct torture_context *tctx,
LPSTR servername,
HANDLE handle)