X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Flib%2Ftest_ctf_writer.c;h=ead55812207fbe85efb1f1db876b52fcf53cb2a2;hp=8942f2f172f675891aada0b3f9579681eb7e0d9c;hb=fcc2519bd610aab07e929ce4847865ad88d9896c;hpb=d82c602ed5c07e996269443686ae671537955cc5 diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 8942f2f1..ead55812 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -470,6 +470,7 @@ void append_simple_event(struct bt_ctf_stream_class *stream_class, ok(iter, "bt_ctf_field_enumeration_get_mappings returns an iterator to matching mappings"); ret = bt_ctf_field_type_enumeration_mapping_iterator_get_signed(iter, &ret_char, NULL, NULL); ok(!ret && ret_char, "bt_ctf_field_type_enumeration_mapping_iterator_get_signed return a mapping name"); + assert(ret_char); ok(!strcmp(ret_char, mapping_name_negative_test), "bt_ctf_field_enumeration_get_single_mapping_name returns the correct mapping name with an signed container"); ret = bt_ctf_event_set_payload(simple_event, "enum_field", enum_field);