From: Simon Marchi Date: Mon, 13 Jun 2022 13:18:01 +0000 (-0400) Subject: Fix: tests: create correct field class in bt_plugin_test_debug_info.py X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=52ea95936a4a5d6f72acaaf97de5d8a428d8d9cc Fix: tests: create correct field class in bt_plugin_test_debug_info.py 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 Reviewed-on: https://review.lttng.org/c/babeltrace/+/8327 Tested-by: jenkins Reviewed-by: Philippe Proulx --- diff --git a/tests/data/plugins/flt.lttng-utils.debug-info/bt_plugin_test_debug_info.py b/tests/data/plugins/flt.lttng-utils.debug-info/bt_plugin_test_debug_info.py index c7d26aae..72532b48 100644 --- a/tests/data/plugins/flt.lttng-utils.debug-info/bt_plugin_test_debug_info.py +++ b/tests/data/plugins/flt.lttng-utils.debug-info/bt_plugin_test_debug_info.py @@ -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),