Fix: bt_ctf_field_type_structure_add_field argument validation
[babeltrace.git] / tests / lib / test_ctf_writer.c
index 7720719e9074a6c86d54480e35edcb3af6df0d58..bbe354f2fe0ce938a9638b9f2151450ede48540c 100644 (file)
@@ -1219,7 +1219,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.022892 seconds and 4 git commands to generate.