From: David Goulet Date: Mon, 30 Jan 2012 16:45:45 +0000 (-0500) Subject: Fix UST add-context test X-Git-Tag: v2.0-pre19~37 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e38021f8f79da8418fa432b58e46e3af5f366e7b;p=lttng-tools.git Fix UST add-context test Signed-off-by: David Goulet --- diff --git a/tests/test_ust_data_trace.c b/tests/test_ust_data_trace.c index 78a31215f..4547b49a2 100644 --- a/tests/test_ust_data_trace.c +++ b/tests/test_ust_data_trace.c @@ -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(); }