s4-smbtorture: remove check for selfmade parsing artefact.
authorGünther Deschner <gd@samba.org>
Thu, 4 Mar 2010 22:13:10 +0000 (23:13 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 5 Mar 2010 14:18:01 +0000 (15:18 +0100)
We were checking against a phenomenon that we created ourselves at the pidl
layer...

Guenther

source4/torture/rpc/spoolss.c

index aad42a6e1a5f924838a37f87e3e5126ff1563bbf..e03ebc588c5073c0368e656303dcc4a93cf4773a 100644 (file)
@@ -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");