X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_event_expr_to_bytecode.cpp;h=fae7eb26ebe214f567a37bdf12bcd0abbf49e73a;hp=48f13e71ee0d9c189bad28aa3580ca10ef2978f3;hb=HEAD;hpb=28ab034a2c3582d07d3423d2d746731f87d3969f diff --git a/tests/unit/test_event_expr_to_bytecode.cpp b/tests/unit/test_event_expr_to_bytecode.cpp index 48f13e71e..a0d04357d 100644 --- a/tests/unit/test_event_expr_to_bytecode.cpp +++ b/tests/unit/test_event_expr_to_bytecode.cpp @@ -14,10 +14,10 @@ #define NR_TESTS 4 -static void test_event_payload_field(void) +static void test_event_payload_field() { struct lttng_event_expr *event_expr; - struct lttng_bytecode *bytecode = NULL; + struct lttng_bytecode *bytecode = nullptr; int ret; event_expr = lttng_event_expr_event_payload_field_create("tourlou"); @@ -29,10 +29,10 @@ static void test_event_payload_field(void) free(bytecode); } -static void test_channel_context_field(void) +static void test_channel_context_field() { struct lttng_event_expr *event_expr; - struct lttng_bytecode *bytecode = NULL; + struct lttng_bytecode *bytecode = nullptr; int ret; event_expr = lttng_event_expr_channel_context_field_create("tourlou"); @@ -44,10 +44,10 @@ static void test_channel_context_field(void) free(bytecode); } -static void test_app_specific_context_field(void) +static void test_app_specific_context_field() { struct lttng_event_expr *event_expr; - struct lttng_bytecode *bytecode = NULL; + struct lttng_bytecode *bytecode = nullptr; int ret; event_expr = lttng_event_expr_app_specific_context_field_create("Bob", "Leponge"); @@ -59,10 +59,10 @@ static void test_app_specific_context_field(void) free(bytecode); } -static void test_array_field_element(void) +static void test_array_field_element() { struct lttng_event_expr *event_expr; - struct lttng_bytecode *bytecode = NULL; + struct lttng_bytecode *bytecode = nullptr; int ret; event_expr = lttng_event_expr_event_payload_field_create("allo"); @@ -75,7 +75,7 @@ static void test_array_field_element(void) free(bytecode); } -int main(void) +int main() { plan_tests(NR_TESTS);