X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_notification.c;h=a44c8ef6718b9ba4808e1387565617eb060c48d6;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hp=5e50eaa4c7e831f754c6f6ceac12c442f2497657;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;p=lttng-tools.git diff --git a/tests/unit/test_notification.c b/tests/unit/test_notification.c index 5e50eaa4c..a44c8ef67 100644 --- a/tests/unit/test_notification.c +++ b/tests/unit/test_notification.c @@ -9,7 +9,6 @@ * */ -#include #include #include #include @@ -25,12 +24,14 @@ #include #include +#include + /* 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) @@ -43,7 +44,7 @@ static void test_condition_buffer_usage( 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); @@ -277,16 +278,6 @@ static void test_condition_buffer_usage_high(void) 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; @@ -317,7 +308,6 @@ int main(int argc, const char *argv[]) plan_tests(NUM_TESTS); test_condition_buffer_usage_low(); test_condition_buffer_usage_high(); - test_action(); test_trigger(); return exit_status(); }