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/torture/smb2/getinfo.c | |
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/torture/smb2/getinfo.c')
-rw-r--r-- | source4/torture/smb2/getinfo.c | 11 |
1 files changed, 10 insertions, 1 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; +} |