Fix: bt_ctf_field_type_structure_add_field argument validation
[babeltrace.git] / tests / lib / test_ctf_writer.c
index 0927a325cc0a06ab7b071b554d760ff5a4e8aa2b..28ffae51f195a1b691f5524660a89dbd66cd847c 100644 (file)
@@ -621,7 +621,7 @@ void type_field_tests()
        ok(!enumeration_array_type,
                "Check enumeration types are validated when creating an array");
        ok(bt_ctf_field_type_structure_add_field(composite_structure_type,
-               enumeration_type, "enumeration") == 0,
+               enumeration_type, "enumeration"),
                "Check enumeration types are validated when adding them as structure members");
        enumeration = bt_ctf_field_create(enumeration_type);
        ok(!enumeration,
This page took 0.024095 seconds and 4 git commands to generate.