From 1b6f1e8c30808c50485b8fecf47e12b45a3ac31f Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 1 Mar 2010 17:42:19 +0100 Subject: testprogs: add DeletePrinterDataEx test. Guenther --- testprogs/win32/spoolss/spoolss.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'testprogs/win32') diff --git a/testprogs/win32/spoolss/spoolss.c b/testprogs/win32/spoolss/spoolss.c index 2d3c5588ad..698f024b11 100644 --- a/testprogs/win32/spoolss/spoolss.c +++ b/testprogs/win32/spoolss/spoolss.c @@ -1243,6 +1243,30 @@ static BOOL test_GetPrinterDataEx(struct torture_context *tctx, /**************************************************************************** ****************************************************************************/ +static BOOL test_DeletePrinterDataEx(struct torture_context *tctx, + LPSTR servername, + LPSTR keyname, + LPSTR valuename, + HANDLE handle) +{ + DWORD err = 0; + char tmp[1024]; + + torture_comment(tctx, "Testing DeletePrinterDataEx(%s - %s)", keyname, valuename); + + err = DeletePrinterDataEx(handle, keyname, valuename); + if (err) { + sprintf(tmp, "DeletePrinterDataEx(%s - %s) failed on [%s], error: %s\n", + keyname, valuename, servername, errstr(err)); + torture_fail(tctx, tmp); + } + + return TRUE; +} + +/**************************************************************************** +****************************************************************************/ + static BOOL test_PrinterData(struct torture_context *tctx, LPSTR servername, HANDLE handle) -- cgit