X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_ust_data.c;h=f22f8c4e21fdfcf3db85e9f6a3c8aec161d9cdb3;hb=dd1cd4064dbceb0bb023aa2719427fe8c8b76003;hp=43ad3115bcd4ae6a4a52616f4b2deefb89a429ce;hpb=4829aad0888e9c0991cd3eab0ba999c2b4f5f50b;p=lttng-tools.git diff --git a/tests/unit/test_ust_data.c b/tests/unit/test_ust_data.c index 43ad3115b..f22f8c4e2 100644 --- a/tests/unit/test_ust_data.c +++ b/tests/unit/test_ust_data.c @@ -252,8 +252,12 @@ static void test_create_ust_context(void) uctx = trace_ust_create_context(&ectx); ok(uctx != NULL, "Create UST context"); - ok((int) uctx->ctx.ctx == LTTNG_UST_CONTEXT_VTID, - "Validate UST context"); + if (uctx) { + ok((int) uctx->ctx.ctx == LTTNG_UST_CONTEXT_VTID, + "Validate UST context"); + } else { + skip(1, "Skipping UST context validation as creation failed"); + } free(uctx); }