From a3df55b26f6afaab4364cb96efb121a3f8fa2c82 Mon Sep 17 00:00:00 2001 From: Zachary Loafman Date: Wed, 18 Nov 2009 00:29:23 +0000 Subject: s4 torture: Make RAW-SEARCH pass against win7 Signed-off-by: Tim Prouty --- source4/torture/raw/search.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source4/torture/raw/search.c') diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c index 3aee7fbdfe..74186e3a5d 100644 --- a/source4/torture/raw/search.c +++ b/source4/torture/raw/search.c @@ -711,7 +711,7 @@ static bool test_many_files(struct torture_context *tctx, if ((search_types[t].cont_type == CONT_RESUME_KEY) && (search_types[t].data_level != RAW_SEARCH_DATA_SEARCH) && - torture_setting_bool(tctx, "samba3", false)) { + !torture_setting_bool(tctx, "resume_key_support", true)) { torture_comment(tctx, "SKIP: Continue %s via %s\n", search_types[t].name, search_types[t].cont_name); @@ -1122,7 +1122,8 @@ static bool test_many_dirs(struct torture_context *tctx, goto done; } - if (strcmp(file3[i].search.name, file2[i].search.name) != 0) { + if (torture_setting_bool(tctx, "rewind_support", true) && + strcmp(file3[i].search.name, file2[i].search.name) != 0) { printf("(%s) server did not rewind - got '%s' expected '%s'\n", __location__, file3[i].search.name, file2[i].search.name); ret = false; @@ -1273,6 +1274,12 @@ static bool test_ea_list(struct torture_context *tctx, printf("Testing RAW_SEARCH_EA_LIST level\n"); + if (!torture_setting_bool(tctx, "search_ea_support", true) || + !torture_setting_bool(tctx, "ea_support", true)) { + printf("..skipped per target configuration.\n"); + return true; + } + fnum = smbcli_open(cli->tree, BASEDIR "\\file1.txt", O_CREAT|O_RDWR, DENY_NONE); smbcli_close(cli->tree, fnum); -- cgit