Python test: remove useless test
[babeltrace.git] / lib / ctf-ir / clock-class.c
index 73df0413aaafb521e3a83d0b7c63f0e342e47b44..2dd6536a6d0f11054b6d3984604b3c4dd4d4f4b3 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <babeltrace/compat/uuid-internal.h>
 #include <babeltrace/ctf-ir/clock-class-internal.h>
+#include <babeltrace/ctf-ir/clock-value-internal.h>
 #include <babeltrace/ctf-ir/utils.h>
 #include <babeltrace/ref.h>
 #include <babeltrace/compiler-internal.h>
@@ -782,6 +783,7 @@ struct bt_ctf_clock_value *bt_ctf_clock_value_create(
        ret->clock_class = bt_get(clock_class);
        ret->value = value;
        set_ns_from_epoch(ret);
+       bt_ctf_clock_class_freeze(clock_class);
        BT_LOGD("Created clock value object: clock-value-addr=%p, "
                "clock-class-addr=%p, clock-class-name=\"%s\", "
                "ns-from-epoch=%" PRId64 ", ns-from-epoch-overflows=%d",
This page took 0.025031 seconds and 4 git commands to generate.