There is no reason for an event rule to have a default type. The
--type parameter is required.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ic7f03453fac410c96ca6bb3b3ca0bdfb297a10d1
}
if (event_rule_type == LTTNG_EVENT_RULE_TYPE_UNKNOWN) {
- event_rule_type = LTTNG_EVENT_RULE_TYPE_USER_TRACEPOINT;
+ ERR("Event rule requires a --type.");
+ goto error;
}
/*
# `--condition event-rule-matches` failures
test_failure "missing args after --condition event-rule-matches" \
"Error: Need at least one --action." \
- --condition event-rule-matches
+ --condition event-rule-matches --type=user
test_failure "extra args after --condition event-rule-matches" \
"Error: Unexpected argument 'bozo'" \