classifier: Test exact-match flows also in test_many_rules_in_different_tables().
authorBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2009 21:18:44 +0000 (13:18 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2009 21:29:06 +0000 (13:29 -0800)
tests/test-classifier.c

index 72f5403a38e91ef100eaef12e8bb19ec32006f3b..5c5fe90c0b48ec0b23c91d507db26b6a5598e114 100644 (file)
@@ -913,7 +913,7 @@ test_many_rules_in_different_tables(void)
         for (i = 0; i < MAX_RULES; i++) {
             struct test_rule *rule;
             int priority = priorities[i];
-            int table = rand() % (CLS_N_FIELDS - 1);
+            int table = rand() % (CLS_N_FIELDS + 1);
             int wcf = random_wcf_in_table(table, rand());
             int value_pat = rand() & ((1u << CLS_N_FIELDS) - 1);
             rule = make_rule(wcf, priority, value_pat);