X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_event_rule.cpp;h=351937444b00fd2a7debca8670a8b7f67343ff0a;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hp=0fc9ec7702a44724339e5a530d19af5f71de52ae;hpb=740da7d5000ca1ffdcf14bda5096bf7ccfb86bdd;p=lttng-tools.git diff --git a/tests/unit/test_event_rule.cpp b/tests/unit/test_event_rule.cpp index 0fc9ec770..351937444 100644 --- a/tests/unit/test_event_rule.cpp +++ b/tests/unit/test_event_rule.cpp @@ -14,29 +14,29 @@ #include -#include -#include +#include +#include #include -#include +#include #include -#include +#include #include -#include +#include #include -#include +#include #include -#include +#include #include -#include +#include #include -#include +#include #include #include -#include +#include #include -#include +#include #include -#include "bin/lttng/loglevel.h" +#include "bin/lttng/loglevel.hpp" /* For error.h. */ int lttng_opt_quiet = 1; @@ -459,6 +459,7 @@ static void test_event_rule_userspace_probe(void) struct lttng_payload payload; diag("Event rule uprobe."); + lttng_payload_init(&payload); lookup_method = lttng_userspace_probe_location_lookup_method_function_elf_create(); if (!lookup_method) { @@ -811,7 +812,7 @@ static void test_event_rule_log_level_python(void) NULL, 0); } -int main(int argc, const char *argv[]) +int main(void) { plan_tests(NUM_TESTS); test_event_rule_kernel_tracepoint();