- 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");
+ }