]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4: torture: In raw.search:test_one_file() add a second connection.
authorJeremy Allison <jra@samba.org>
Fri, 19 Nov 2021 22:44:05 +0000 (14:44 -0800)
committerRalph Boehme <slow@samba.org>
Sat, 11 Dec 2021 11:14:31 +0000 (11:14 +0000)
Change from torture_suite_add_1smb_test() to torture_suite_add_2smb_test().

Not yet used. We will need this to do SMB1+POSIX search calls on
a connection on which we have negotiated SMB1+POSIX.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/raw/search.c

index 9b140928689ba1e795f8786498e6a6f09a53172c..f6ad569dd4b89390b4e9102583592a1745385c14 100644 (file)
@@ -300,8 +300,9 @@ static union smb_search_data *find(const char *name)
 /* 
    basic testing of all RAW_SEARCH_* calls using a single file
 */
-static bool test_one_file(struct torture_context *tctx, 
-                         struct smbcli_state *cli)
+static bool test_one_file(struct torture_context *tctx,
+                         struct smbcli_state *cli,
+                         struct smbcli_state *cli_unix)
 {
        bool ret = true;
        int fnum;
@@ -1571,7 +1572,7 @@ struct torture_suite *torture_raw_search(TALLOC_CTX *mem_ctx)
 {
        struct torture_suite *suite = torture_suite_create(mem_ctx, "search");
 
-       torture_suite_add_1smb_test(suite, "one file search", test_one_file);
+       torture_suite_add_2smb_test(suite, "one file search", test_one_file);
        torture_suite_add_1smb_test(suite, "many files", test_many_files);
        torture_suite_add_1smb_test(suite, "sorted", test_sorted);
        torture_suite_add_1smb_test(suite, "modify search", test_modify_search);