From: Philippe Proulx Date: Sat, 16 Sep 2017 19:12:34 +0000 (-0400) Subject: tests/lib/test_ctf_writer.c: test structure field name is a keyword X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=beb0f041dc0948c3a7b08969a9af02624a54e99d tests/lib/test_ctf_writer.c: test structure field name is a keyword Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- 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(