bt2: validate parameters to _StreamClass.create_event_class before creating the nativ...
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 19 Nov 2019 22:44:12 +0000 (17:44 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 23:04:18 +0000 (18:04 -0500)
commit3321d9b00a7554e189aed2377c2b9caa0f201800
tree050cf611472b8b236fd58eed96ccd4b9fdc3aedd
parent46fc35d64e8d6a779b37760161965f2dc1350ddb
bt2: validate parameters to _StreamClass.create_event_class before creating the native object

For the same reasons outlined in d3bf1370a437 ("bt2: validate parameters
to _TraceClass.create_stream_class before creating the native object"),
validate the parameters when creating an event class before creating the
native object.

Change-Id: I435b21c145e663a373f3e989feac3e1d5de626c8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2415
src/bindings/python/bt2/bt2/event_class.py
src/bindings/python/bt2/bt2/stream_class.py
tests/bindings/python/bt2/test_event_class.py
This page took 0.024262 seconds and 4 git commands to generate.