-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core.app: assert that links are connected only once
This reveals bugs in some test cases: In apps.lwaft.V4V6, the same source is connected to different apps, which does not work as intended. In apps.test.match, fix bug in config reuse the code re-uses the same app config object for each test. In the penultimate case, the config contains the linkspec "src.output -> sink.rx". The last case adds the specs "src.output -> join.src" and "join.output -> sink.rx", i.e. there are now two links connected to sink.rx. The hash-part of the app's input table only contains the second of these links while the array part contains both. Re-use of an app config object only works in an additive fashion as there is no method to remove apps or links from it. The bug is fixed by creating a new config object and adding all elements from scratch. program.snabbvmx.tests.end-to-end.selftest.sh also fails. This appears to be a bug in program.snabbvmx.lwaftr.setup, which creates the link specs vm_v4v6.v6 -> nh_fwd6.vm vm_v4v6.v4 -> nh_fwd6.vm The latter should probably be vm_v4v6.v4 -> nh_fwd4.vm
- Loading branch information
1 parent
a2097f3
commit 395a4f8
Showing
3 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters