summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-11-19 14:51:39 -0800
committerRalph Boehme <slow@samba.org>2021-12-11 11:14:31 +0000
commit397cc7599b91cec10aa79570e29e9ced72a1690f (patch)
tree3a769275dbdbcc110c56c21248518db80dd02b58 /source4/torture
parentaaa6d09f6fa376926237f90168c2dbc22fcf2e39 (diff)
downloadsamba-397cc7599b91cec10aa79570e29e9ced72a1690f.tar.gz
s4: torture: Fix raw.search:test_one_file() by using the SMB1+POSIX connection for POSIX info levels.
Remove the following entry in knownfail.d/posix_infolevel_fails. ^samba3.raw.search.one\ file\ search.* from knownfail.d/posix_infolevel_fails Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/raw/search.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c
index 3f7de80ad0f..575bbd03fb7 100644
--- a/source4/torture/raw/search.c
+++ b/source4/torture/raw/search.c
@@ -389,10 +389,19 @@ static bool test_one_file(struct torture_context *tctx,
for (i=0;i<ARRAY_SIZE(levels);i++) {
NTSTATUS expected_status;
uint32_t cap = cli->transport->negotiate.capabilities;
+ struct smbcli_state *cli_search = cli;
torture_comment(tctx, "Testing %s\n", levels[i].name);
- levels[i].status = torture_single_search(cli, tctx, fname,
+ if (levels[i].data_level == RAW_SEARCH_DATA_UNIX_INFO) {
+ /*
+ * For an SMB1+POSIX info level, use the cli_unix
+ * connection.
+ */
+ cli_search = cli_unix;
+ }
+
+ levels[i].status = torture_single_search(cli_search, tctx, fname,
levels[i].level,
levels[i].data_level,
0,
@@ -416,7 +425,7 @@ static bool test_one_file(struct torture_context *tctx,
continue;
}
- status = torture_single_search(cli, tctx, fname2,
+ status = torture_single_search(cli_search, tctx, fname2,
levels[i].level,
levels[i].data_level,
0,