torture: make smb2 lock test work with samba4-ntvfs
authorAndrew Tridgell <tridge@samba.org>
Thu, 9 Feb 2012 03:33:31 +0000 (14:33 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 9 Feb 2012 04:41:50 +0000 (15:41 +1100)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/torture/smb2/lock.c

index 3691830ce4758963a2ad0a899ee792fb1af69fc0..a98575d333e89897e18a439514b84712a3627dad 100644 (file)
@@ -1044,7 +1044,7 @@ static bool test_cancel_tdis(struct torture_context *torture,
 
        torture_comment(torture, "  Check pending lock reply\n");
        status = smb2_lock_recv(req, &lck);
-       if (torture_setting_bool(torture, "samba4", false)) {
+       if (torture_setting_bool(torture, "samba4-ntvfs", false)) {
                /* saying that this lock succeeded is nonsense - the
                 * tree is gone!! */
                CHECK_STATUS(status, NT_STATUS_RANGE_NOT_LOCKED);
@@ -1130,7 +1130,7 @@ static bool test_cancel_logoff(struct torture_context *torture,
 
        torture_comment(torture, "  Check pending lock reply\n");
        status = smb2_lock_recv(req, &lck);
-       if (torture_setting_bool(torture, "samba4", false)) {
+       if (torture_setting_bool(torture, "samba4-ntvfs", false)) {
                /* another bogus 'success' code from windows. The lock
                 * cannot have succeeded, as we are now logged off */
                CHECK_STATUS(status, NT_STATUS_RANGE_NOT_LOCKED);