s4-smbtorture: disable test_SecondaryClosePrinter when running against s3 for now.
authorGünther Deschner <gd@samba.org>
Mon, 13 Apr 2009 15:06:37 +0000 (17:06 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 13 Apr 2009 21:45:37 +0000 (23:45 +0200)
Guenther

source4/torture/rpc/spoolss.c

index 6c78cf3cc2e0b063ec774cad0d2ea6015b2dd889..f4181f4747e9bc5de9fcdab4fb518737f58436f1 100644 (file)
@@ -1658,8 +1658,10 @@ static bool test_OpenPrinter(struct torture_context *tctx,
                ret = false;
        }
 
-       if (!test_SecondaryClosePrinter(tctx, p, &handle)) {
-               ret = false;
+       if (!torture_setting_bool(tctx, "samba3", false)) {
+               if (!test_SecondaryClosePrinter(tctx, p, &handle)) {
+                       ret = false;
+               }
        }
 
        if (!test_ClosePrinter(tctx, p, &handle)) {
@@ -1758,8 +1760,10 @@ static bool test_OpenPrinterEx(struct torture_context *tctx,
                ret = false;
        }
 
-       if (!test_SecondaryClosePrinter(tctx, p, &handle)) {
-               ret = false;
+       if (!torture_setting_bool(tctx, "samba3", false)) {
+               if (!test_SecondaryClosePrinter(tctx, p, &handle)) {
+                       ret = false;
+               }
        }
 
        if (!test_ClosePrinter(tctx, p, &handle)) {