From b76bd39b6fb0c60dda51b48ad43ce55791e6086e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 1 Nov 2011 23:50:01 +0100 Subject: [PATCH] s4:torture:smb2: lease.update2: some more reasonable struct names and a comment --- source4/torture/smb2/lease.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source4/torture/smb2/lease.c b/source4/torture/smb2/lease.c index 4b1352b205c..fc1f7c7d247 100644 --- a/source4/torture/smb2/lease.c +++ b/source4/torture/smb2/lease.c @@ -301,7 +301,11 @@ static bool test_lease_upgrade(struct torture_context *tctx, return ret; } -struct lease_upgrade_test { +/** + * upgrade2 test. + * full matrix of lease upgrade combinations + */ +struct lease_upgrade2_test { const char *initial; const char *upgrade_to; const char *expected; @@ -309,7 +313,7 @@ struct lease_upgrade_test { #define NUM_LEASE_TYPES 5 #define NUM_UPGRADE_TESTS ( NUM_LEASE_TYPES * NUM_LEASE_TYPES ) -struct lease_upgrade_test lease_upgrade_tests[NUM_UPGRADE_TESTS] = { +struct lease_upgrade2_test lease_upgrade2_tests[NUM_UPGRADE_TESTS] = { { "", "", "" }, { "", "R", "R" }, { "", "RH", "RH" }, @@ -354,7 +358,7 @@ static bool test_lease_upgrade2(struct torture_context *tctx, int i; for (i = 0; i < NUM_UPGRADE_TESTS; i++) { - struct lease_upgrade_test t = lease_upgrade_tests[i]; + struct lease_upgrade2_test t = lease_upgrade2_tests[i]; smb2_util_unlink(tree, fname); -- 2.11.4.GIT