diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-07-20 18:58:23 -0700 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-07-22 17:46:48 -0700 |
| commit | 897b9afc123aec3b9e8950797b53909754e748bc (patch) | |
| tree | 85b24ac52bd489fe2f011d6f796e8952630d02b0 /tests | |
| parent | 67b46721946b5e3f20978bb65d512be600b1b2af (diff) | |
| download | openvswitch-897b9afc123aec3b9e8950797b53909754e748bc.tar.gz | |
bundle: Run bundle_check() in unit tests.
This has been helpful finding bugs in my development environment.
It's good to exercise this code.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-bundle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-bundle.c b/tests/test-bundle.c index 8a892925e..c6c9aec2a 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 |
