From dc0c19c21130c641c7c2dcf349be87da684d84ef Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 12 Jul 2023 13:15:20 -0700 Subject: [PATCH] libsysprof-profile: flush recording before exit --- src/libsysprof-profile/tests/test-profiler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsysprof-profile/tests/test-profiler.c b/src/libsysprof-profile/tests/test-profiler.c index af88276a..1ac31e10 100644 --- a/src/libsysprof-profile/tests/test-profiler.c +++ b/src/libsysprof-profile/tests/test-profiler.c @@ -226,6 +226,8 @@ main (int argc, sysprof_capture_writer_cat (writer, reader); } + sysprof_capture_writer_flush (writer); + g_clear_pointer (&reader, sysprof_capture_reader_unref); g_clear_pointer (&writer, sysprof_capture_writer_unref);