Fix: tests: register thread for RCU operations.
[lttng-tools.git] / tests / unit / test_session.c
index 7c925908d326f18443c3e2184a50a8c430abb723..1e633187f8299c6b9d49af3b9d245384fd9612a9 100644 (file)
@@ -24,6 +24,7 @@
 #include <unistd.h>
 #include <time.h>
 #include <sys/types.h>
+#include <urcu.h>
 
 #include <tap/tap.h>
 
@@ -295,6 +296,8 @@ int main(int argc, char **argv)
 
        diag("Sessions unit tests");
 
+       rcu_register_thread();
+
        test_session_list();
 
        test_create_one_session();
@@ -311,5 +314,7 @@ int main(int argc, char **argv)
 
        test_large_session_number();
 
+       rcu_unregister_thread();
+
        return exit_status();
 }
This page took 0.023848 seconds and 4 git commands to generate.