Fix UST add-context test
[lttng-tools.git] / tests / test_ust_data_trace.c
index 78a31215f77b1dd14bbb871a71b7a5bd9a83334e..4547b49a292a434ec90b67425ca9393827e0fa5a 100644 (file)
@@ -168,16 +168,18 @@ static void create_ust_event(void)
 
 static void create_ust_context(void)
 {
-       struct lttng_event_context ctx;
+       struct lttng_event_context ectx;
        struct ltt_ust_context *uctx;
 
+       ectx.ctx = LTTNG_EVENT_CONTEXT_VTID;
+
        printf("Creating UST context: ");
-       uctx = trace_ust_create_context(&ctx);
+       uctx = trace_ust_create_context(&ectx);
        assert(uctx != NULL);
        PRINT_OK();
 
        printf("Validating UST context: ");
-       assert((int) ctx.ctx == (int)uctx->ctx.ctx);
+       assert((int) uctx->ctx.ctx == LTTNG_UST_CONTEXT_VTID);
        PRINT_OK();
 }
 
This page took 0.025134 seconds and 5 git commands to generate.