X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_kernel_probe.cpp;h=bec28825b2c5b3c700c3f7fc68d54ffbbd90a78e;hp=12e6e3555f0a47181fd2a4bb30977c4362fbe3d9;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/tests/unit/test_kernel_probe.cpp b/tests/unit/test_kernel_probe.cpp index 12e6e3555..bec28825b 100644 --- a/tests/unit/test_kernel_probe.cpp +++ b/tests/unit/test_kernel_probe.cpp @@ -26,10 +26,10 @@ int lttng_opt_mi; #define NUM_TESTS 24 -static void test_kernel_probe_location_address(void) +static void test_kernel_probe_location_address() { - struct lttng_kernel_probe_location *location = NULL; - struct lttng_kernel_probe_location *location_from_buffer = NULL; + struct lttng_kernel_probe_location *location = nullptr; + struct lttng_kernel_probe_location *location_from_buffer = nullptr; enum lttng_kernel_probe_location_status status; enum lttng_kernel_probe_location_type type; uint64_t address = 50, _address; @@ -84,10 +84,10 @@ static void test_kernel_probe_location_address(void) lttng_kernel_probe_location_destroy(location_from_buffer); } -static void test_kernel_probe_location_symbol(void) +static void test_kernel_probe_location_symbol() { - struct lttng_kernel_probe_location *location = NULL; - struct lttng_kernel_probe_location *location_from_buffer = NULL; + struct lttng_kernel_probe_location *location = nullptr; + struct lttng_kernel_probe_location *location_from_buffer = nullptr; enum lttng_kernel_probe_location_status status; enum lttng_kernel_probe_location_type type; uint64_t offset = 50, _offset; @@ -151,7 +151,7 @@ static void test_kernel_probe_location_symbol(void) lttng_kernel_probe_location_destroy(location_from_buffer); } -int main(void) +int main() { plan_tests(NUM_TESTS); test_kernel_probe_location_address();