summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/spoolss.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc/spoolss.c')
-rw-r--r--source4/torture/rpc/spoolss.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 8e454ea66d..fef95bd2b0 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -4264,9 +4264,14 @@ static bool test_printer_rename(struct torture_context *tctx,
torture_assert_str_equal(tctx, printer_name, printer_name_new,
"new printer name was not set");
- torture_assert(tctx,
- test_OpenPrinter_badname(tctx, b, printer_name_orig),
- "still can open printer with oldname");
+ /* samba currently cannot fully rename printers */
+ if (!torture_setting_bool(tctx, "samba3", false)) {
+ torture_assert(tctx,
+ test_OpenPrinter_badname(tctx, b, printer_name_orig),
+ "still can open printer with oldname after rename");
+ } else {
+ torture_warning(tctx, "*not* checking for open with oldname after rename for samba3");
+ }
torture_assert(tctx,
call_OpenPrinterEx(tctx, p, printer_name_new, NULL, &new_handle),