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=577dea93229ce1ffc12c785508383b20e217b83e;hb=HEAD;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f diff --git a/tests/unit/test_event_expr_to_bytecode.cpp b/tests/unit/test_event_expr_to_bytecode.cpp index 577dea932..a0d04357d 100644 --- a/tests/unit/test_event_expr_to_bytecode.cpp +++ b/tests/unit/test_event_expr_to_bytecode.cpp @@ -6,17 +6,18 @@ */ #include + #include #include + #include #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"); @@ -28,11 +29,10 @@ 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,11 +44,10 @@ 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"); @@ -60,11 +59,10 @@ 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"); @@ -77,7 +75,7 @@ void test_array_field_element(void) free(bytecode); } -int main(void) +int main() { plan_tests(NR_TESTS);