From ec50db61fa6f3cf026c1f0f40528587b3dec8da3 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 10 Nov 2010 15:21:15 +0100 Subject: s4-smbtorture: use test_GetPrinterData{Ex}_checktype calls in RPC-SPOOLSS tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Wed Nov 10 15:07:12 UTC 2010 on sn-devel-104 --- source4/torture/rpc/spoolss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 8b219777f3..6530a85495 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -4784,7 +4784,7 @@ static bool test_SetPrinterData_matrix(struct torture_context *tctx, for (i=0; i < ARRAY_SIZE(values); i++) { - enum winreg_Type type; + enum winreg_Type type, expected_type = REG_SZ; DATA_BLOB blob; uint8_t *data; uint32_t needed; @@ -4797,7 +4797,7 @@ static bool test_SetPrinterData_matrix(struct torture_context *tctx, "SetPrinterData failed"); torture_assert(tctx, - test_GetPrinterData(tctx, b, handle, values[i], &type, &data, &needed), + test_GetPrinterData_checktype(tctx, b, handle, values[i], &expected_type, &type, &data, &needed), "GetPrinterData failed"); torture_assert_int_equal(tctx, type, REG_SZ, "type mismatch"); @@ -5120,7 +5120,7 @@ static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx, "failed to call SetPrinterDataEx"); torture_assert(tctx, - test_GetPrinterDataEx(tctx, p, handle, key_name, value_name, &type, &data_out, &needed), + test_GetPrinterDataEx_checktype(tctx, p, handle, key_name, value_name, &types[t], &type, &data_out, &needed), "failed to call GetPrinterDataEx"); torture_assert(tctx, -- cgit