summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-11-01 23:50:01 +0100
committerMichael Adam <obnox@samba.org>2011-11-09 01:02:08 +0100
commitb76bd39b6fb0c60dda51b48ad43ce55791e6086e (patch)
tree6cbe407788d10ad8e2de1f78c2b612ebc6b26726 /source4/torture
parent8dab942d1ceeddef9ad314e04a7f6c219b2601ea (diff)
downloadsamba-b76bd39b6fb0c60dda51b48ad43ce55791e6086e.tar.gz
samba-b76bd39b6fb0c60dda51b48ad43ce55791e6086e.tar.bz2
samba-b76bd39b6fb0c60dda51b48ad43ce55791e6086e.zip
s4:torture:smb2: lease.update2: some more reasonable struct names and a comment
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/lease.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/torture/smb2/lease.c b/source4/torture/smb2/lease.c
index 4b1352b205..fc1f7c7d24 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);