*
*/
-#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <lttng/notification/notification.h>
#include <lttng/trigger/trigger.h>
+#include <common/macros.h>
+
/* For error.h */
int lttng_opt_quiet = 1;
int lttng_opt_verbose;
int lttng_opt_mi;
-#define NUM_TESTS 182
+#define NUM_TESTS 180
static void test_condition_buffer_usage(
struct lttng_condition *buffer_usage_condition)
double threshold_ratio;
uint64_t threshold_bytes;
- assert(buffer_usage_condition);
+ LTTNG_ASSERT(buffer_usage_condition);
diag("Validating initialization");
status = lttng_condition_buffer_usage_get_threshold_ratio(buffer_usage_condition, &threshold_ratio);
lttng_condition_destroy(buffer_usage_high);
}
-static void test_action(void)
-{
- struct lttng_action *notify_action = NULL;
-
- notify_action = lttng_action_notify_create();
- ok(notify_action, "Create notify action");
- ok(lttng_action_get_type(notify_action) == LTTNG_ACTION_TYPE_NOTIFY, "Action has type LTTNG_ACTION_TYPE_NOTIFY");
- lttng_action_destroy(notify_action);
-}
-
static void test_trigger(void)
{
struct lttng_action *notify_action = NULL;
plan_tests(NUM_TESTS);
test_condition_buffer_usage_low();
test_condition_buffer_usage_high();
- test_action();
test_trigger();
return exit_status();
}