X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_event_expr_to_bytecode.cpp;h=a0d04357ddcf2db9d7019bdb3e26d906441f1e4f;hb=cd9adb8b829564212158943a0d279bb35322ab30;hp=48f13e71ee0d9c189bad28aa3580ca10ef2978f3;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1;p=lttng-tools.git 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);