Fix: tests: create correct field class in bt_plugin_test_debug_info.py
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 13 Jun 2022 13:18:01 +0000 (09:18 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 13 Jun 2022 17:36:29 +0000 (13:36 -0400)
The wrong function is used to create this component class.  The
intention is to create a static array field class, but
create_dynamic_array_field_class is used.  Change it to
create_static_array_field_class.  Length 3 matches the length of the
value set in CompleteIter.__init__.

Change-Id: I69962e10c2f4b945487d7b818adcd71b460fe17b
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8327
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/data/plugins/flt.lttng-utils.debug-info/bt_plugin_test_debug_info.py

index c7d26aae4ca24e362310b7cc4d43ed86894df984..72532b48e928f70bc54edff3682de4c844aa1279 100644 (file)
@@ -116,7 +116,7 @@ class CompleteSrc(bt2._UserSourceComponent, message_iterator_class=CompleteIter)
                     dyn_array_with_len_elem_fc, length_fc=dyn_array_with_len_fc
                 ),
             ),
-            ("sta_array", tc.create_dynamic_array_field_class(sta_array_elem_fc)),
+            ("sta_array", tc.create_static_array_field_class(sta_array_elem_fc, 3)),
             (
                 "option_none",
                 tc.create_option_without_selector_field_class(option_none_fc),
This page took 0.024948 seconds and 4 git commands to generate.