RAW-SEARCH: skip RESUME_KEY tests against samba3
[samba.git] / source4 / torture / raw / search.c
index 0242b9c5450d65ae2c13a29b363d285ae547019b..725ed261aace300d6038c6e7dc2a8a24dc18063d 100644 (file)
@@ -708,6 +708,16 @@ static bool test_many_files(struct torture_context *tctx,
 
        for (t=0;t<ARRAY_SIZE(search_types);t++) {
                ZERO_STRUCT(result);
+
+               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_comment(tctx,
+                                       "SKIP: Continue %s via %s\n",
+                                       search_types[t].name, search_types[t].cont_name);
+                       continue;
+               }
+
                result.tctx = talloc_new(tctx);
        
                torture_comment(tctx,