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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Nov 2019 19:24:17 +0000 (14:24 -0500)
commit88cf534320b30567b480d6b434b83a1db015ca7e
treeb3116668ba575f432eed1c8f191aa0bdf452b82c
parent350e94d387ba04442e033b7d752ac91d73d4bb35
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.024553 seconds and 4 git commands to generate.