From: Ethan Jackson Date: Thu, 21 Jul 2011 01:58:23 +0000 (-0700) Subject: bundle: Run bundle_check() in unit tests. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897b9afc123aec3b9e8950797b53909754e748bc;p=openvswitch bundle: Run bundle_check() in unit tests. This has been helpful finding bugs in my development environment. It's good to exercise this code. --- 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