s4-smbtorture: move ChangeID test to the list of tests we run against created printers.
authorGünther Deschner <gd@samba.org>
Wed, 24 Feb 2010 11:00:36 +0000 (12:00 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 25 Feb 2010 12:13:33 +0000 (13:13 +0100)
Guenther

source4/torture/rpc/spoolss.c

index 772abf4bc9989ed043a146ff79f81d4950935792..a3419a782e704b44bf12992c4c33a21837180b72 100644 (file)
@@ -3628,10 +3628,6 @@ static bool test_OpenPrinterEx(struct torture_context *tctx,
                ret = false;
        }
 
                ret = false;
        }
 
-       if (!test_ChangeID(tctx, p, &handle)) {
-               ret = false;
-       }
-
        if (!torture_setting_bool(tctx, "samba3", false)) {
                if (!test_SecondaryClosePrinter(tctx, p, &handle)) {
                        ret = false;
        if (!torture_setting_bool(tctx, "samba3", false)) {
                if (!test_SecondaryClosePrinter(tctx, p, &handle)) {
                        ret = false;
@@ -4395,6 +4391,10 @@ static bool test_one_printer(struct torture_context *tctx,
                ret = false;
        }
 
                ret = false;
        }
 
+       if (!test_ChangeID(tctx, p, handle)) {
+               ret = false;
+       }
+
        if (!test_printer_keys(tctx, p, handle)) {
                ret = false;
        }
        if (!test_printer_keys(tctx, p, handle)) {
                ret = false;
        }