From 897b9afc123aec3b9e8950797b53909754e748bc Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Wed, 20 Jul 2011 18:58:23 -0700 Subject: [PATCH] bundle: Run bundle_check() in unit tests. This has been helpful finding bugs in my development environment. It's good to exercise this code. --- tests/test-bundle.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test-bundle.c b/tests/test-bundle.c index 8a892925..c6c9aec2 100644 --- a/tests/test-bundle.c +++ b/tests/test-bundle.c @@ -135,6 +135,10 @@ main(int argc, char *argv[]) flows[i].regs[0] = OFPP_NONE; } + if (bundle_check(nab, 1024)) { + ovs_fatal(0, "Bundle action fails to check."); + } + /* Cycles through each possible liveness permutation for the given * n_slaves. The initial state is equivalent to all slaves down, so we * skip it by starting at i = 1. We do one extra iteration to cover -- 2.30.2