From 65f453ce71fa5911aa5f99b80df9834135052d4b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 4 Mar 2010 23:13:10 +0100 Subject: s4-smbtorture: remove check for selfmade parsing artefact. We were checking against a phenomenon that we created ourselves at the pidl layer... Guenther --- source4/torture/rpc/spoolss.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index aad42a6e1a..e03ebc588c 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -3341,14 +3341,7 @@ static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx, if (!test_GetPrinterDataEx(tctx, p, handle, keys[i], value_name, &type, &data_out, &needed)) { return false; } - - /* special case, a REG_BINARY set with 0 size returns a 0 sized - * REG_NONE - gd */ - if ((types[t] == REG_BINARY) && (offered == 0)) { - torture_assert_int_equal(tctx, REG_NONE, type, "type mismatch"); - } else { - torture_assert_int_equal(tctx, types[t], type, "type mismatch"); - } + torture_assert_int_equal(tctx, types[t], type, "type mismatch"); torture_assert_int_equal(tctx, needed, offered, "size mismatch"); torture_assert_mem_equal(tctx, data_out, data.data, offered, "buffer mismatch"); -- cgit