4 * Unit tests for the notification API.
6 * Copyright (C) 2017 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
8 * SPDX-License-Identifier: MIT
20 #include <common/payload-view.h>
21 #include <common/payload.h>
22 #include <lttng/action/action-internal.h>
23 #include <lttng/action/action.h>
24 #include <lttng/action/firing-policy-internal.h>
25 #include <lttng/action/firing-policy.h>
26 #include <lttng/action/notify.h>
29 int lttng_opt_quiet
= 1;
30 int lttng_opt_verbose
;
35 static void test_action_notify(void)
37 struct lttng_action
*notify_action
= NULL
;
39 notify_action
= lttng_action_notify_create();
40 ok(notify_action
, "Create notify action");
41 ok(lttng_action_get_type(notify_action
) == LTTNG_ACTION_TYPE_NOTIFY
,
42 "Action has type LTTNG_ACTION_TYPE_NOTIFY");
43 lttng_action_destroy(notify_action
);
46 int main(int argc
, const char *argv
[])
48 plan_tests(NUM_TESTS
);
This page took 0.02968 seconds and 4 git commands to generate.