tests/lib/test_ctf_writer.c: test structure field name is a keyword
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 16 Sep 2017 19:12:34 +0000 (15:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 17 Sep 2017 18:10:51 +0000 (14:10 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_ctf_writer.c

index 99783406e366fd66d2384fa2b9dafeb54d79647a..e2cf2434f1f287725afe2cc648d2330e800dfa96 100644 (file)
@@ -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(
This page took 0.030628 seconds and 4 git commands to generate.