From 8c683ae037bd1e70ebf001619d8395b24fe53db1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 4 Mar 2009 13:18:44 -0800 Subject: [PATCH] classifier: Test exact-match flows also in test_many_rules_in_different_tables(). --- tests/test-classifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-classifier.c b/tests/test-classifier.c index 72f5403a..5c5fe90c 100644 --- a/tests/test-classifier.c +++ b/tests/test-classifier.c @@ -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); -- 2.30.2