diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-12-03 22:32:33 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-12-04 05:45:09 +0100 |
commit | 8c323f20dccb8d7a362e6ebb87fd6ec7739c336a (patch) | |
tree | bc6b5193981a7c68b32205a21bd75ed6a3d6b7a2 /source4 | |
parent | 99f9eee657fcc1c435d00a677395e5125070bf77 (diff) | |
download | samba-8c323f20dccb8d7a362e6ebb87fd6ec7739c336a.tar.gz |
s4:torture:smb2: let smb2.lease.[v2_]complex1 check the R->NONE breaks
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/lease.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/smb2/lease.c b/source4/torture/smb2/lease.c index 1665586fc30..9d14aeb8096 100644 --- a/source4/torture/smb2/lease.c +++ b/source4/torture/smb2/lease.c @@ -3040,12 +3040,12 @@ static bool test_lease_complex1(struct torture_context *tctx, CHECK_STATUS(status, NT_STATUS_OK); /* Contend with LEASE2. */ - smb2_lease_create(&io2, &ls2, false, fname, LEASE2, smb2_util_lease_state("RHW")); + smb2_lease_create(&io2, &ls2, false, fname, LEASE2, smb2_util_lease_state("R")); status = smb2_create(tree1b, mem_ctx, &io2); CHECK_STATUS(status, NT_STATUS_OK); h3 = io2.out.file.handle; CHECK_CREATED(&io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE); - CHECK_LEASE(&io2, "RH", true, LEASE2, 0); + CHECK_LEASE(&io2, "R", true, LEASE2, 0); /* Verify that we were only sent one break. */ CHECK_BREAK_INFO("RHW", "RH", LEASE1); @@ -3073,7 +3073,7 @@ static bool test_lease_complex1(struct torture_context *tctx, CHECK_STATUS(status, NT_STATUS_OK); ls2.lease_epoch += 1; - CHECK_BREAK_INFO("RH", "", LEASE2); + CHECK_BREAK_INFO("R", "", LEASE2); ZERO_STRUCT(break_info); @@ -3178,13 +3178,13 @@ static bool test_lease_v2_complex1(struct torture_context *tctx, /* Contend with LEASE2. */ smb2_lease_v2_create(&io2, &ls2, false, fname, LEASE2, NULL, - smb2_util_lease_state("RWH"), 0x11); + smb2_util_lease_state("R"), 0x11); status = smb2_create(tree1b, mem_ctx, &io2); CHECK_STATUS(status, NT_STATUS_OK); h3 = io2.out.file.handle; CHECK_CREATED(&io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE); ls2.lease_epoch += 1; - CHECK_LEASE_V2(&io2, "RH", true, LEASE2, + CHECK_LEASE_V2(&io2, "R", true, LEASE2, 0, 0, ls2.lease_epoch); /* Verify that we were only sent one break. */ @@ -3217,7 +3217,7 @@ static bool test_lease_v2_complex1(struct torture_context *tctx, ls2.lease_epoch += 1; CHECK_BREAK_INFO_V2(tree1a->session->transport, - "RH", "", LEASE2, ls2.lease_epoch); + "R", "", LEASE2, ls2.lease_epoch); ZERO_STRUCT(break_info); |