Tests: close writer object before reading the trace produced
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 30 Jan 2017 23:47:04 +0000 (18:47 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:37 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_ctf_writer.c

index 457d36cb933356969e9666aeed155e2935a2a693..724133e21ea4be78f96f774cead375d40f249601 100644 (file)
@@ -3532,8 +3532,6 @@ int main(int argc, char **argv)
        ok(metadata_string, "Get metadata string");
 
        bt_ctf_writer_flush_metadata(writer);
        ok(metadata_string, "Get metadata string");
 
        bt_ctf_writer_flush_metadata(writer);
-       validate_metadata(argv[1], metadata_path);
-       validate_trace(argv[2], trace_path);
 
        bt_put(clock);
        bt_put(ret_stream_class);
 
        bt_put(clock);
        bt_put(ret_stream_class);
@@ -3552,6 +3550,9 @@ int main(int argc, char **argv)
        free(metadata_string);
        bt_put(stream_class);
 
        free(metadata_string);
        bt_put(stream_class);
 
+       validate_metadata(argv[1], metadata_path);
+       validate_trace(argv[2], trace_path);
+
        recursive_rmdir(trace_path);
        return 0;
 }
        recursive_rmdir(trace_path);
        return 0;
 }
This page took 0.028746 seconds and 4 git commands to generate.