projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond: add support for anonymous triggers
[lttng-tools.git]
/
tests
/
regression
/
tools
/
notification
/
notification.c
diff --git
a/tests/regression/tools/notification/notification.c
b/tests/regression/tools/notification/notification.c
index ce6f5633275bd05f78df5a05d680919d18ee6276..c097c102698d88871a3c089a8d5558324a9be2b3 100644
(file)
--- a/
tests/regression/tools/notification/notification.c
+++ b/
tests/regression/tools/notification/notification.c
@@
-590,7
+590,13
@@
static const char *get_notification_trigger_name(
}
trigger_status = lttng_trigger_get_name(trigger, &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;
}
fail("Failed to get name from notification's trigger");
goto end;
}
This page took
0.025008 seconds
and
4
git commands to generate.