Fix: syscall event rule: emission sites not compared in is_equal
[lttng-tools.git] / tests / unit / test_event_expr_to_bytecode.cpp
index 577dea93229ce1ffc12c785508383b20e217b83e..a0d04357ddcf2db9d7019bdb3e26d906441f1e4f 100644 (file)
@@ -6,17 +6,18 @@
  */
 
 #include <common/bytecode/bytecode.hpp>
+
 #include <lttng/event-expr-internal.hpp>
 #include <lttng/event-expr.h>
+
 #include <tap/tap.h>
 
 #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);
 
This page took 0.02355 seconds and 4 git commands to generate.