+ /*
+ * Verify that it's possible to get and set the value of a
+ * writer mode clock.
+ */
+ ok (!bt_ctf_clock_set_value(writer_clock, 1000),
+ "bt_ctf_clock_set_value() succeeds with a writer mode clock");
+ ok (bt_ctf_clock_get_value(writer_clock) == 1000,
+ "bt_ctf_clock_get_value() succeeds with a writer mode clock");
+
+ /*
+ * Verify that it's impossible to get and set the value of a
+ * non-writer mode clock.
+ */
+ ok (bt_ctf_clock_set_value(non_writer_clock, 1000),
+ "bt_ctf_clock_set_value() fails with a non-writer mode clock");
+ ok (bt_ctf_clock_get_value(non_writer_clock) == -1ULL,
+ "bt_ctf_clock_get_value() fails with a non-writer mode clock");
+