diff options
author | Volker Lendecke <vl@samba.org> | 2013-08-22 11:06:59 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-08-23 09:48:48 -0700 |
commit | 8f96d489715d88c181d88030550a88a7e245e5ae (patch) | |
tree | d77213ca35d16b2e7336b2b1002fc9ea2a5a7bf6 /source4 | |
parent | ad8a1e2a6ee126596abe992bc39da3b8ea1b4f9b (diff) | |
download | samba-8f96d489715d88c181d88030550a88a7e245e5ae.tar.gz samba-8f96d489715d88c181d88030550a88a7e245e5ae.tar.bz2 samba-8f96d489715d88c181d88030550a88a7e245e5ae.zip |
torture: Change smb2.getinfo into a suite
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/getinfo.c | 11 | ||||
-rw-r--r-- | source4/torture/smb2/smb2.c | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/source4/torture/smb2/getinfo.c b/source4/torture/smb2/getinfo.c index f407acc77b..f60db95088 100644 --- a/source4/torture/smb2/getinfo.c +++ b/source4/torture/smb2/getinfo.c @@ -179,7 +179,7 @@ static bool torture_smb2_buffercheck(struct torture_context *tctx, struct smb2_t /* basic testing of all SMB2 getinfo levels */ -bool torture_smb2_getinfo(struct torture_context *torture) +static bool torture_smb2_getinfo(struct torture_context *torture) { struct smb2_tree *tree; bool ret = true; @@ -213,3 +213,12 @@ bool torture_smb2_getinfo(struct torture_context *torture) return ret; } + +struct torture_suite *torture_smb2_getinfo_init(void) +{ + struct torture_suite *suite = torture_suite_create( + talloc_autofree_context(), "getinfo"); + + torture_suite_add_simple_test(suite, "complex", torture_smb2_getinfo); + return suite; +} diff --git a/source4/torture/smb2/smb2.c b/source4/torture/smb2/smb2.c index f6a31633af..19d7e4ae92 100644 --- a/source4/torture/smb2/smb2.c +++ b/source4/torture/smb2/smb2.c @@ -148,7 +148,7 @@ NTSTATUS torture_smb2_init(void) struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "smb2"); torture_suite_add_simple_test(suite, "connect", torture_smb2_connect); torture_suite_add_suite(suite, torture_smb2_scan_init()); - torture_suite_add_simple_test(suite, "getinfo", torture_smb2_getinfo); + torture_suite_add_suite(suite, torture_smb2_getinfo_init()); torture_suite_add_simple_test(suite, "setinfo", torture_smb2_setinfo); torture_suite_add_suite(suite, torture_smb2_lock_init()); torture_suite_add_suite(suite, torture_smb2_read_init()); |