From 4dff667f2846ccb258c430dc55e75cf0716e3943 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Sat, 16 Sep 2017 15:12:34 -0400 Subject: [PATCH] tests/lib/test_ctf_writer.c: test structure field name is a keyword MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- tests/lib/test_ctf_writer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 99783406..e2cf2434 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -747,7 +747,7 @@ void append_complex_event(struct bt_ctf_stream_class *stream_class, enum_variant_type, "variant_selector"), "Add variant_selector field to complex structure"); ok(!bt_ctf_field_type_structure_add_field(complex_structure_type, - string_type, "a_string"), "Add a_string field to complex structure"); + string_type, "string"), "Add `string` field to complex structure"); ok(!bt_ctf_field_type_structure_add_field(complex_structure_type, variant_type, "variant_value"), "Add variant_value field to complex structure"); @@ -933,7 +933,7 @@ void append_complex_event(struct bt_ctf_stream_class *stream_class, inner_structure_field = bt_ctf_field_structure_get_field( complex_structure_field, "inner_structure"); a_string_field = bt_ctf_field_structure_get_field( - complex_structure_field, "a_string"); + complex_structure_field, "string"); enum_variant_field = bt_ctf_field_structure_get_field( complex_structure_field, "variant_selector"); variant_field = bt_ctf_field_structure_get_field( -- 2.34.1