bt2: check that port is connected when creating message iterator
authorSimon Marchi <simon.marchi@efficios.com>
Sun, 12 Apr 2020 18:52:20 +0000 (14:52 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 14 Apr 2020 19:59:39 +0000 (15:59 -0400)
commit415d43a1b12feae338e910af6d6a1865054c2ef4
tree96522bb4700e8e15c3691a202e0bd489887fb5c5
parent157a98edd5aebe1b6ab7f60a49d8430450fabe76
bt2: check that port is connected when creating message iterator

Creating a message iterator for a non-connected input port hits a
precondition assertion.  Add some checks in the Python bindings to raise
a more friendly ValueError in that case.

Change-Id: I323e49c7408f5df8e1702eb993933ffc251b6c63
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3396
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/bt2/component.py
src/bindings/python/bt2/bt2/message_iterator.py
tests/bindings/python/bt2/test_message_iterator.py
This page took 0.024882 seconds and 4 git commands to generate.