Fix: bt2: pass _TraceClassConst to destruction listeners
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 27 Nov 2023 20:41:31 +0000 (15:41 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 23 Jan 2024 18:26:57 +0000 (13:26 -0500)
commit2d6b60ff29423b918ac791f35d4f259178107cc1
treea4d8a3f85f134aeeeabd72415b358e81f9892869
parent1d99c8c2c0c013325c465eebb8d5e0a60fc3dc2d
Fix: bt2: pass _TraceClassConst to destruction listeners

Trace class destruction listeners currently receive a _TraceClass.  I
think it's a mistake, in that they should receive a _TraceClassConst.
Fix that, tweak the tests to test it.  Test the same thing for trace
destruction listeners (they didn't suffer from the same issue).

Change-Id: I4651ffc44c916d64f6e6f2944fa856b4ed5bb5f6
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11447
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/bt2/trace_class.py
tests/bindings/python/bt2/test_trace.py
tests/bindings/python/bt2/test_trace_class.py
This page took 0.024296 seconds and 4 git commands to generate.