X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Ftest_ust_data_trace.c;h=4547b49a292a434ec90b67425ca9393827e0fa5a;hb=ca1c3607d2f5654163875cda874f43971df0f696;hp=e4d42b40ab3b148a78a66d9352436979fbfd870f;hpb=10a8a2237343699e3923d87e24dbf2d7fe225377;p=lttng-tools.git diff --git a/tests/test_ust_data_trace.c b/tests/test_ust_data_trace.c index e4d42b40a..4547b49a2 100644 --- a/tests/test_ust_data_trace.c +++ b/tests/test_ust_data_trace.c @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include "utils.h" @@ -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(); }