Fix: tests: register thread for RCU operations.
[lttng-tools.git] / tests / unit / test_session.c
index f2343c9916bd5636a455807616b549cfc1e56811..03e6b91611ad0732fa82faf0c386c252cf0ca4c5 100644 (file)
@@ -24,6 +24,7 @@
 #include <unistd.h>
 #include <time.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <time.h>
 #include <sys/types.h>
+#include <urcu.h>
 
 #include <tap/tap.h>
 
 
 #include <tap/tap.h>
 
@@ -302,6 +303,8 @@ int main(int argc, char **argv)
 
        diag("Sessions unit tests");
 
 
        diag("Sessions unit tests");
 
+       rcu_register_thread();
+
        test_session_list();
 
        test_create_one_session();
        test_session_list();
 
        test_create_one_session();
@@ -318,6 +321,7 @@ int main(int argc, char **argv)
 
        test_large_session_number();
 
 
        test_large_session_number();
 
+       rcu_unregister_thread();
        assert(!fini_ht_cleanup_thread(&ht_cleanup_thread));
 
        return exit_status();
        assert(!fini_ht_cleanup_thread(&ht_cleanup_thread));
 
        return exit_status();
This page took 0.033894 seconds and 4 git commands to generate.