summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/usertest.h
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-05-22 05:03:16 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-05-26 14:36:12 +0300
commit644593d30ecddec27f0a48340d74db7cf164bfc3 (patch)
tree2f165413b55db30421b617570398744cfbb02e66 /source4/torture/libnet/usertest.h
parent2bca048367456b09d16f51405373fa33be6eeca3 (diff)
downloadsamba-644593d30ecddec27f0a48340d74db7cf164bfc3.tar.gz
samba-644593d30ecddec27f0a48340d74db7cf164bfc3.tar.bz2
samba-644593d30ecddec27f0a48340d74db7cf164bfc3.zip
s4/test: Replace hand-made field count to test
This patch replaces hand-make count of fields to be tested with defines for FIRST-LAST value for corresponding fields to test with. As a side-effect, 'acct_flags' is now included in tests.
Diffstat (limited to 'source4/torture/libnet/usertest.h')
-rw-r--r--source4/torture/libnet/usertest.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/libnet/usertest.h b/source4/torture/libnet/usertest.h
index 19d56415b3..aecec538dd 100644
--- a/source4/torture/libnet/usertest.h
+++ b/source4/torture/libnet/usertest.h
@@ -26,8 +26,11 @@
}
-#define FIELDS_NUM 11
-enum test_fields { none = 0, account_name, full_name, description, home_directory, home_drive,
+#define USER_FIELD_FIRST account_name
+#define USER_FIELD_LAST acct_flags
+
+enum test_fields { none = 0,
+ account_name, full_name, description, home_directory, home_drive,
comment, logon_script, profile_path, acct_expiry, acct_flags };