From 81582b6b670f634fe0015779c421934e124ed3b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 17 Jan 2017 00:14:35 -0500 Subject: [PATCH] Test fix: a stream class' clock must be associated to its writer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- tests/lib/test_ctf_ir_ref.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/test_ctf_ir_ref.c b/tests/lib/test_ctf_ir_ref.c index 809af51c..649f559e 100644 --- a/tests/lib/test_ctf_ir_ref.c +++ b/tests/lib/test_ctf_ir_ref.c @@ -517,6 +517,8 @@ static void create_user_full(struct user *user) assert(user->sc); clock = bt_ctf_clock_create("the_clock"); assert(clock); + ret = bt_ctf_writer_add_clock(user->writer, clock); + assert(!ret); ret = bt_ctf_stream_class_set_clock(user->sc, clock); assert(!ret); user->stream = bt_ctf_writer_create_stream(user->writer, user->sc); -- 2.34.1