FIXUP: s4:torture:smb2: add test open-lease-all
authorGregor Beck <gbeck@sernet.de>
Thu, 16 Jan 2014 10:48:10 +0000 (11:48 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 9 May 2014 10:58:20 +0000 (12:58 +0200)
source4/torture/smb2/durable_v2_open.c

index b8a23011d0443fbf959855c60faa7b01bdc2c4a0..f65d0403de0631508809f2da8240967b28ddeab3 100644 (file)
@@ -1891,7 +1891,7 @@ static bool test_open_oplock_all(struct torture_context *tctx,
                const char **level;
                for (level=&OPLOCK_LEVEL[0]; *level; level++) {
                        const char **shm;
-                       for (shm=&SHARE_MODE[7]; *shm; shm++) {
+                       for (shm=&SHARE_MODE[0]; *shm; shm++) {
                                ret &= test_open_oplock(tctx, tree, fname,
                                                        *level, *shm, persistent);
                        }
@@ -2014,7 +2014,7 @@ static bool test_open_lease_all(struct torture_context *tctx,
                const char **type;
                for (type=&LEASE_TYPE[0]; *type; type++) {
                        const char **shm;
-                       for (shm=&SHARE_MODE[7]; *shm; shm++) {
+                       for (shm=&SHARE_MODE[0]; *shm; shm++) {
                                ret &= test_open_lease(tctx, tree, fname,
                                                       *type, *shm, persistent);
                        }