summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/spoolss.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 2a74131119..396ed75d25 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -2139,11 +2139,11 @@ static bool test_EnumPrinterData(struct torture_context *tctx, struct dcerpc_pip
torture_assert_ntstatus_ok(tctx, status, "EnumPrinterData failed");
- test_GetPrinterData(tctx, p, handle, r.out.value_name);
+ torture_assert(tctx, test_GetPrinterData(tctx, p, handle, r.out.value_name),
+ talloc_asprintf(tctx, "failed to call GetPrinterData for %s\n", r.out.value_name));
- test_GetPrinterDataEx(tctx,
- p, handle, "PrinterDriverData",
- r.out.value_name);
+ torture_assert(tctx, test_GetPrinterDataEx(tctx, p, handle, "PrinterDriverData", r.out.value_name),
+ talloc_asprintf(tctx, "failed to call GetPrinterDataEx on PrinterDriverData for %s\n", r.out.value_name));
r.in.enum_index++;
@@ -2439,6 +2439,10 @@ static bool test_OpenPrinterEx(struct torture_context *tctx,
ret = false;
}
+ if (!test_printer_keys(tctx, p, &handle)) {
+ ret = false;
+ }
+
if (!test_PausePrinter(tctx, p, &handle)) {
ret = false;
}