Fix: sessiond: ODR violation results in memory corruption
[lttng-tools.git] / tests / unit / test_relayd_backward_compat_group_by_session.cpp
index dee0fabd41df9028435da3750e7f705f4ceb60ae..4b794faf7c7081660cc1317dbdc575c999f8cfbb 100644 (file)
 #include <string.h>
 #include <tap/tap.h>
 
-#include <common/time.h>
+#include <common/time.hpp>
 
-#include "backward-compatibility-group-by.h"
+#include "backward-compatibility-group-by.hpp"
 
 /* Number of TAP tests in this file */
 #define NUM_TESTS_PER_TEST 1
 
+namespace {
 struct test {
        const char *stream_path;
        const char *session_name;
@@ -27,6 +28,7 @@ struct test {
        const char *leftover;
        bool is_valid;
 };
+} /* namespace */
 
 int lttng_opt_quiet;
 int lttng_opt_mi;
@@ -127,7 +129,7 @@ end:
        return result;
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
        int i;
        int num_test = sizeof(tests) / sizeof(struct test);
This page took 0.024323 seconds and 4 git commands to generate.