RAW-SEARCH: skip RESUME_KEY tests against samba3
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Mar 2008 20:58:29 +0000 (21:58 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 11 Mar 2008 20:59:16 +0000 (21:59 +0100)
metze
(This used to be commit ca5b37747107bd2941f7415fe609c8293a6b5f7c)

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,