sessiond: add support for anonymous triggers
[lttng-tools.git] / tests / regression / tools / notification / notification.c
index ce6f5633275bd05f78df5a05d680919d18ee6276..c097c102698d88871a3c089a8d5558324a9be2b3 100644 (file)
@@ -590,7 +590,13 @@ static const char *get_notification_trigger_name(
        }
 
        trigger_status = lttng_trigger_get_name(trigger, &trigger_name);
-       if (trigger_status != LTTNG_TRIGGER_STATUS_OK) {
+       switch (trigger_status) {
+       case LTTNG_TRIGGER_STATUS_OK:
+               break;
+       case LTTNG_TRIGGER_STATUS_UNSET:
+               trigger_name = "(anonymous)";
+               break;
+       default:
                fail("Failed to get name from notification's trigger");
                goto end;
        }
This page took 0.023357 seconds and 4 git commands to generate.