summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-15 14:55:25 +0100
committerGünther Deschner <gd@samba.org>2010-03-15 14:55:25 +0100
commit1eb0fbe68d4ca00ec482cbdb9f73bc2af8f953bf (patch)
treed2240ac46f440213db51ef3c56418326f1e7fa77 /source4/torture
parentc9cc26ef620b6c46ba129ea07ce33892abf5931a (diff)
downloadsamba-1eb0fbe68d4ca00ec482cbdb9f73bc2af8f953bf.tar.gz
samba-1eb0fbe68d4ca00ec482cbdb9f73bc2af8f953bf.tar.bz2
samba-1eb0fbe68d4ca00ec482cbdb9f73bc2af8f953bf.zip
s4-smbtorture: cleanup data after enumdata{ex} consistency test.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/spoolss.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 3f675a8826..e9b4327237 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -3156,6 +3156,10 @@ static bool test_SetPrinterData(struct torture_context *tctx,
enum winreg_Type type,
uint8_t *data,
uint32_t offered);
+static bool test_DeletePrinterData(struct torture_context *tctx,
+ struct dcerpc_pipe *p,
+ struct policy_handle *handle,
+ const char *value_name);
static bool test_EnumPrinterData_consistency(struct torture_context *tctx,
struct dcerpc_pipe *p,
@@ -3245,6 +3249,10 @@ static bool test_EnumPrinterData_consistency(struct torture_context *tctx,
torture_assert_mem_equal(tctx, data, info[i].data->data, info[i].data_length, "data mismatch");
}
+ torture_assert(tctx,
+ test_DeletePrinterData(tctx, p, handle, "torture_value"),
+ "DeletePrinterData failed");
+
torture_comment(tctx, "EnumPrinterData vs EnumPrinterDataEx consistency test succeeded\n\n");
return true;