Tests: Fix test plans and do not skip on fail
[babeltrace.git] / tests / lib / test_ctf_writer.c
index 2d7c5a500af71d32d03725ca6a09b0ac873a32f6..d246510e9fae0e88564cd9bdf5b76f193d4ecd2e 100644 (file)
@@ -57,6 +57,8 @@
 #define DEFAULT_CLOCK_IS_ABSOLUTE 0
 #define DEFAULT_CLOCK_TIME 0
 
+#define NR_TESTS 588
+
 static uint64_t current_time = 42;
 
 /* Return 1 if uuids match, zero if different. */
@@ -2689,7 +2691,7 @@ int main(int argc, char **argv)
                return -1;
        }
 
-       plan_no_plan();
+       plan_tests(NR_TESTS);
 
        if (!bt_mkdtemp(trace_path)) {
                perror("# perror");
@@ -3285,9 +3287,6 @@ int main(int argc, char **argv)
        bt_put(packet_header_field);
        bt_put(trace);
        free(metadata_string);
-
-       ok(bt_ctf_stream_class_get_trace(stream_class) == NULL,
-               "bt_ctf_stream_class_get_trace returns NULL after its trace has been reclaimed");
        bt_put(stream_class);
 
        /* Remove all trace files and delete temporary trace directory */
This page took 0.025889 seconds and 4 git commands to generate.