Tests: Unchecked return value in test_ctf_writer
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 30 May 2016 19:10:08 +0000 (15:10 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 30 May 2016 19:11:06 +0000 (15:11 -0400)
Reported by Coverity as:
CID 1349725 (#1 of 1): Unchecked return value (CHECKED_RETURN)

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_ctf_writer.c

index 5f173aff32287a69e6958c3b73b29e98616a874d..9d92aa61c1d9b70db1d8b1c3a328a0b616e11af3 100644 (file)
@@ -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
This page took 0.027011 seconds and 4 git commands to generate.