From: Jérémie Galarneau Date: Mon, 30 May 2016 19:10:08 +0000 (-0400) Subject: Tests: Unchecked return value in test_ctf_writer X-Git-Tag: v2.0.0-pre1~937 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=a046cf3cdf5682791b87221bfc7c13c80e96df00 Tests: Unchecked return value in test_ctf_writer Reported by Coverity as: CID 1349725 (#1 of 1): Unchecked return value (CHECKED_RETURN) Signed-off-by: Jérémie Galarneau --- diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 5f173aff..9d92aa61 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -59,7 +59,7 @@ #define DEFAULT_CLOCK_TIME 0 #define DEFAULT_CLOCK_VALUE 0 -#define NR_TESTS 605 +#define NR_TESTS 606 static int64_t current_time = 42; @@ -493,7 +493,8 @@ void append_simple_event(struct bt_ctf_stream_class *stream_class, "bt_ctf_event_class_get_context_type returns the appropriate type"); bt_put(returned_type); - bt_ctf_stream_class_add_event_class(stream_class, simple_event_class); + ok(!bt_ctf_stream_class_add_event_class(stream_class, simple_event_class), + "Adding simple event class to stream class"); /* * bt_ctf_stream_class_add_event_class() copies the field types