diff options
author | Günther Deschner <gd@samba.org> | 2010-03-01 17:42:19 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-03-01 21:15:33 +0100 |
commit | 1b6f1e8c30808c50485b8fecf47e12b45a3ac31f (patch) | |
tree | f3028d8fd3b4cd0da6e2024209361695facaa5da /testprogs | |
parent | 61568cf4c8f12148390435cba7845acf0b00e941 (diff) | |
download | samba-1b6f1e8c30808c50485b8fecf47e12b45a3ac31f.tar.gz samba-1b6f1e8c30808c50485b8fecf47e12b45a3ac31f.tar.bz2 samba-1b6f1e8c30808c50485b8fecf47e12b45a3ac31f.zip |
testprogs: add DeletePrinterDataEx test.
Guenther
Diffstat (limited to 'testprogs')
-rw-r--r-- | testprogs/win32/spoolss/spoolss.c | 24 |
1 files changed, 24 insertions, 0 deletions
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) |