projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67b4672
)
bundle: Run bundle_check() in unit tests.
author
Ethan Jackson
<ethan@nicira.com>
Thu, 21 Jul 2011 01:58:23 +0000
(18:58 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Sat, 23 Jul 2011 00:46:48 +0000
(17:46 -0700)
This has been helpful finding bugs in my development environment.
It's good to exercise this code.
tests/test-bundle.c
patch
|
blob
|
history
diff --git
a/tests/test-bundle.c
b/tests/test-bundle.c
index 8a892925ee0b6c6a7934406e4f49acca1256a6bf..c6c9aec2ae5ec76fd87ca4fd8643bbbf1f927dd4 100644
(file)
--- 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