vscode: Add configurations to run the executables under the debugger
[lttng-tools.git] / tests / unit / test_event_expr_to_bytecode.cpp
index 48f13e71ee0d9c189bad28aa3580ca10ef2978f3..a0d04357ddcf2db9d7019bdb3e26d906441f1e4f 100644 (file)
 
 #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);
 
This page took 0.025126 seconds and 4 git commands to generate.